[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:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35: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:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56: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:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17: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:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59: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:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:55]int [05:36:55]Write to MH i2c: 01 00 00 5F 0A 69 [05:36:55]*** FLAG_PRN_PAP2 set [05:36:55]Write i2c OK [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: 01 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: 01 07 00 [05:36:55]MH_I2C_Read... [05:36:55]Read from MH i2c: 01 07 00 5F 0A 00 02 00 00 00 FF 0F 80 [05:36:55]state=0 [05:36:55]Cover opened [05:36:56]OFD Sender: No OFD packet to send [05:37:00]Write to MH i2c: 01 00 00 60 0A 6A [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 60 0A 00 02 00 00 00 FF 0F 81 [05:37:00]state=3 [05:37:00]Cover opened [05:37:00]int [05:37:00]Write to MH i2c: 01 00 00 61 0A 6B [05:37:00]*** FLAG_PRN_PAP2 reset [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 FF 0F 80 [05:37:00]state=3 [05:37:00]Cover closed [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:39:54]ConnectInit Can't connect to host [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:28]int [05:40:28]Write to MH i2c: 01 00 00 10 00 10 [05:40:28]*** FLAG_PRN_KEY set [05:40:28]Write i2c OK [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 10 00 00 08 00 00 00 FF 0F 2D [05:40:28]state=0 [05:40:28]Key pressed [05:40:28]Feed [05:40:28]Write to MH i2c: D8 00 00 11 00 E8 [05:40:28]Write i2c OK [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: D8 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: D8 01 00 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: D8 01 00 11 00 00 E9 [05:40:28]int [05:40:28]Write to MH i2c: 01 00 00 12 00 12 [05:40:28]Write i2c OK [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 12 00 00 48 00 00 00 3D 00 9E [05:40:28]state=2 [05:40:28]Key pressed [05:40:28]int [05:40:28]Write to MH i2c: 01 00 00 13 00 13 [05:40:28]*** FLAG_PRN_KEY reset [05:40:28]Write i2c OK [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 [05:40:28]MH_I2C_Read... [05:40:28]Read from MH i2c: 01 07 00 13 00 00 00 00 00 00 F6 0F 1F [05:40:28]state=2 [05:40:28]Stop feed [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:46]accept exits with 8 [05:49:46]New connection [05:49:46]New thread 3066654052 created [05:49:46]Waiting for new connection... [05:49:46] Sock 8.Parse request [05:49:46]Sock 8.Check first char [05:49:46]Sock 8.First char is OK [05:49:46]request: POST /json_proto HTTP/1.0 [05:49:46]Method: POST [05:49:46]URL: /json_proto [05:49:46]Method is POST - this is cgi request [05:49:46]url: /json_proto [05:49:46]query_string will be loaded in cgi processing [05:49:46]execute_cgi json_proto POST (null) [05:49:46]execute_cgi path=json_proto method=POST [05:49:46]POST find Content-Length [05:49:46]Host: 172.17.38.134:8080 [05:49:46]Content-Length: 627 [05:49:46]Content-Type: application/json [05:49:46] [05:49:46]POST finish read [05:49:46]Found Content-Length = 627 [05:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184165", "tax_sys" : 0, "items" : [ { "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "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" ] } } [05:49:46]execute_script... [05: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 : (3)184165", "tax_sys" : 0, "items" : [ { "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "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" ] } } [05:49:46]POST & json_proto [05:49:46]process_json_proto [05:49:46]json parsed OK: [05:49:46]protocol is kg_v1.0 [05:49:46]action value=close_receipt [05:49:46]process_action close_receipt [05:49:46]cmd_close_receipt [05:49:46]MH_GetDate [05:49:46]Write to MH i2c: F0 00 00 14 00 03 [05:49:46]Write i2c OK [05:49:46]MH_I2C_Read... [05:49:46]Read from MH i2c: F0 [05:49:46]MH_I2C_Read... [05:49:46]Read from MH i2c: F0 09 00 [05:49:46]MH_I2C_Read... [05:49:46]Read from MH i2c: F0 09 00 14 00 00 FA C2 73 66 13 9C 7C 64 30 [05:49:46]GetLastDocTimeStamp 1718852129 [05:49:46]current date 1718862586 [05:49:46]FM_GetShiftState [05:49:46]SAM_PROTO_GetShiftState [05:49:46]wFMCommunicate request_size=4 [05:49:46]MH_SAM_APDU [05:49:46]CAPDU: 80 13 01 00 [05:49:46]Write to MH i2c: E2 08 00 15 00 80 13 01 00 00 00 00 00 92 [05:49:46]Write i2c OK [05:49:46]MH_I2C_Read... [05:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:46]Read from MH i2c: E2 [05:49:46]MH_I2C_Read... [05:49:46]Read from MH i2c: E2 0E 00 [05:49:46]MH_I2C_Read... [05:49:46]Read from MH i2c: E2 0E 00 15 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AA [05:49:46]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [05:49:46]wFMCommunicate OK [05:49:46]SAM_PROTO_GetShiftState done [05:49:46]FM_GetShiftState done [05:49:46]opened in 1718843069 [05:49:46]opened+sec_in_day 1718929469 [05:49:46]quantity*price = 7500 [05:49:46]sum+1 = 7501 [05:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 20.06.2024 05:49 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34392 ФПД: 41560594620041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T054946&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34392&fm=41560594620041&tin=02508201610067®Number=0000000000092786&sum=7500 0 [05:49:47]StoreToDocumentArchive [05:49:47]shift 325 fd 34392 [05:49:47]save to /storage/0325/doc_00034392 [05:49:47]save last doc name /storage/0325/doc_00034392 to /storage/kkm_last_doc_name [05:49:47]save OK [05:49:47]Clear old archive folders... [05:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:49:47]tlvbuf is 001F63F0 [05:49:47]SAM_PROTO_ClearQueue [05:49:47]wFMCommunicate request_size=4 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 09 00 00 [05:49:47]Write to MH i2c: E2 08 00 22 00 80 09 00 00 00 00 00 00 94 [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:47]Read from MH i2c: E2 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [05:49:47]RAPDU: 90 00 [05:49:47]wFMCommunicate OK [05:49:47]SAM_PROTO_ClearQueue done [05:49:47]KKMCreateOFDPacket [05:49:47]OFDProtocolAddRootSTLVToBuf [05:49:47]FM_MakeSignedData [05:49:47]FM_MakeSignedData [05:49:47]SAM_PROTO_SignData [05:49:47]wFMCommunicate request_size=4 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 0D 01 02 [05:49:47]Write to MH i2c: E2 08 00 23 00 80 0D 01 02 00 00 00 00 9C [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:47]Read from MH i2c: E2 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [05:49:47]RAPDU: 90 00 [05:49:47]wFMCommunicate OK [05:49:47]wFMCommunicate request_size=255 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 02 00 00 00 F4 03 04 00 FA C2 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [05:49:47]Write to MH i2c: E2 02 01 24 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 02 00 00 00 F4 03 04 00 FA C2 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 24 [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:47]Read from MH i2c: E2 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [05:49:47]RAPDU: 90 00 [05:49:47]wFMCommunicate OK [05:49:47]wFMCommunicate request_size=33 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 58 86 00 00 35 04 06 00 25 CC 94 7A 9E 89 [05:49:47]Write to MH i2c: E2 24 00 25 00 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 58 86 00 00 35 04 06 00 25 CC 94 7A 9E 89 00 00 34 [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:47]Read from MH i2c: E2 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [05:49:47]RAPDU: 90 00 [05:49:47]wFMCommunicate OK [05:49:47]wFMCommunicate request_size=4 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 0D 03 02 [05:49:47]Write to MH i2c: E2 08 00 26 00 80 0D 03 02 00 00 00 00 A1 [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:47]Read from MH i2c: E2 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 0B 00 [05:49:47]MH_I2C_Read... [05:49:47]Read from MH i2c: E2 0B 00 26 00 00 F7 43 A4 B1 B1 B7 82 8B 90 00 A6 [05:49:47]RAPDU: F7 43 A4 B1 B1 B7 82 8B 90 00 [05:49:47]wFMCommunicate OK [05:49:47]SAM_PROTO_SignData done [05:49:47]FM_MakeSignedData done [05:49:47]CreateOFDProtocolMessage [05:49:47]wFMCommunicate request_size=4 [05:49:47]MH_SAM_APDU [05:49:47]CAPDU: 80 11 00 00 [05:49:47]Write to MH i2c: E2 08 00 27 00 80 11 00 00 00 00 00 00 A1 [05:49:47]OFD Sender: No OFD packet to send [05:49:47]Write i2c OK [05:49:47]MH_I2C_Read... [05:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:48]Read from MH i2c: E2 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: E2 17 00 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: E2 17 00 27 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F6 [05:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [05:49:48]wFMCommunicate OK [05:49:48]CreateOFDProtocolMessage done [05:49:48]OFDSenderStorePacket 34392 [05:49:48]StoreOFDPacket docnum=34392 [05:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 C9 C7 1E 01 C2 DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 02 00 00 00 F4 03 04 00 FA C2 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 58 86 00 00 35 04 06 00 25 CC 94 7A 9E 89 F7 43 A4 B1 B1 B7 82 8B [05:49:48]CheckFolder [05:49:48]dirname=/storage/ofd_packets [05:49:48]CheckFolder done [05:49:48]ProducePacketName [05:49:48]name=ofd_packets/00034392 [05:49:48]NVStorageSaveData ofd_packets/00034392 [05:49:48]File name is /storage/ofd_packets/00034392 [05:49:48]Write 324 bytes [05:49:48]NVStorageSaveData done [05:49:48]OFDSenderStorePacket done [05:49:48]KKMCreateOFDPacket done [05:49:48]NVStorageSaveData kkm_last_timestamp [05:49:48]File name is /storage/kkm_last_timestamp [05:49:48]Write 4 bytes [05:49:48]NVStorageSaveData done [05:49:48]ExternCall_PrintAddStr [05:49:48]wPrintStart [05:49:48]Write to MH i2c: 01 00 00 28 00 28 [05:49:48]Write i2c OK [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 07 00 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 07 00 28 00 00 00 00 00 00 FF 0F 3D [05:49:48]RasterBufferAndPrint [05:49:48]line Счет N : (3)184165 [05:49:48]line ИНН: 02508201610067 [05:49:48]line Контрольно-Кассовый Чек [05:49:48]line ПРОДАЖА [05:49:48]line Товар: 46003553 [05:49:48]line Nestle NUTS батончик 30х50г [05:49:48]line 1.000 * 75.00 [05:49:48]line = 75.00 [05:49:48]line НДС 12% НСП 1% [05:49:48]line > о реализуемом товаре [05:49:48]line ИТОГО: 75.00 [05:49:48]line НСП 1% : 0.66 [05:49:48]line НДС 12% : 7.96 [05:49:48]line Наличными: 75.00 [05:49:48]line Безнал.: 0.00 [05:49:48]line Место: АЗС № 120 "Партнер Нефть" [05:49:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:49:48]line СНО: Общий режим [05:49:48]line Чек 2 20.06.2024 05:49 [05:49:48]line Смена: 325 ФФД: 1.0 [05:49:48]line ЗНМ: 0300000172 [05:49:48]line РНМ: 0000000000092786 [05:49:48]line Версия ККМ: 001 [05:49:48]line ФМ: 0000000000875095 [05:49:48]line ФД: 34392 [05:49:48]line ФПД: 41560594620041 [05:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T054946&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34392&fm=41560594620041&tin=02508201610067®Number=0000000000092786&sum=7500 [05:49:48]line 0 [05:49:48]written 0, free lines is 4095 [05:49:48]OFD Sender: Processing packet 34392 [packets to send 8, broken 7] [05:49:48]ProducePacketName [05:49:48]name=ofd_packets/00034392 [05:49:48]OFD Sender: To server: pG, [05:49:48]CommunicateWithHost lk.salyk.kg:30040 [05:49:48]ConnectInit lk.salyk.kg [05:49:48]Connected sock=10 [05: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 35 30 39 35 26 01 00 00 C9 C7 1E 01 C2 DE 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 02 00 00 00 F4 03 04 00 FA C2 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 58 86 00 00 35 04 06 00 25 CC 94 7A 9E 89 F7 43 A4 B1 B1 B7 82 8B [05:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 1B 6A 47 00 8F 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 35 30 39 35 10 04 04 00 58 86 00 00 F4 03 04 00 C4 69 73 66 B6 04 01 00 00 6E 9A CF 5B 0B 93 D5 A9 [05:49:48]CommunicateWithHost err = 0 [05:49:48]CheckOFDResponse [05:49:48]1017 (14) - 77093643461234 [05:49:48]1041 (16) - 0000000000875095 [05:49:48]1040 (4) - 34392 [05:49:48]1012 (4) - 19.06.2024 23:29 [05:49:48]1206 (1) - 0 [05:49:48]OFD Sender: Remove packet 34392 [05:49:48]ProducePacketName [05:49:48]name=ofd_packets/00034392 [05:49:48]NVStorageDeleteData [05:49:48]Write to MH i2c: 01 00 00 50 00 50 [05:49:48]Write i2c OK [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 07 00 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 02 0D 66 [05:49:48]RasterBufferAndPrint [05:49:48]line [05:49:48]line [05:49:48]line [05:49:48]line [05:49:48]line [05:49:48]written 0, free lines is 3337 [05:49:48]MH_Cut [05:49:48]Write to MH i2c: D1 01 00 57 00 01 29 [05:49:48]Write i2c OK [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: D1 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: D1 01 00 [05:49:48]MH_I2C_Read... [05:49:48]Read from MH i2c: D1 01 00 57 00 00 28 [05:49:48]Write to MH i2c: 01 00 00 58 00 58 [05:49:48]Write i2c OK [05:49:48]MH_I2C_Read... [05:49:48]OFD Sender: No OFD packet to send [05:49:49]*** Cut start [05:49:49]*** Partial cut [05:49:49]*** CUTSNS_PIN = 1 [05:49:49]*** CUTSNS_PIN = 0 [05:49:49]*** Brake cut motor [05:49:49]Read from MH i2c: 01 [05:49:49]MH_I2C_Read... [05:49:49]*** Stop cut motor [05:49:49]*** Cut end [05:49:49]Read from MH i2c: 01 07 00 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: 01 07 00 58 00 00 00 00 00 00 FF 0F 6D [05:49:49]process_action close_receipt done [05:49:49]requested_data is exist [05:49:49]produce_requested_data [05:49:49]requested_item fm.sn is exist - process it [05:49:49]wFMCommunicate request_size=4 [05:49:49]MH_SAM_APDU [05:49:49]CAPDU: 80 11 00 00 [05:49:49]Write to MH i2c: E2 08 00 59 00 80 11 00 00 00 00 00 00 D3 [05:49:49]Write i2c OK [05:49:49]MH_I2C_Read... [05:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:49]Read from MH i2c: E2 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: E2 17 00 [05:49:49]MH_I2C_Read... [05:49:49]Read from MH i2c: E2 17 00 59 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 28 [05:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [05:49:49]wFMCommunicate OK [05:49:49]requested_item fd.num is exist - process it [05:49:49]SAM_PROTO_GetFieldsCounters [05:49:49]wFMCommunicate request_size=4 [05:49:49]MH_SAM_APDU [05:49:49]CAPDU: 80 13 00 00 [05:49:49]Write to MH i2c: E2 08 00 5A 00 80 13 00 00 00 00 00 00 D6 [05:49:49]Write i2c OK [05:49:49]MH_I2C_Read... [05:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 62 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 62 00 5A 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 58 86 00 00 0E 04 04 00 45 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 2A [05:49: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 58 86 00 00 0E 04 04 00 45 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 [05:49:50]wFMCommunicate OK [05:49:50]SAM_PROTO_GetFieldsCounters done [05:49:50]requested_item shift.num is exist - process it [05:49:50]requested_item shift.opened is exist - process it [05:49:50]req_shift_opened [05:49:50]FM_GetShiftState [05:49:50]SAM_PROTO_GetShiftState [05:49:50]wFMCommunicate request_size=4 [05:49:50]MH_SAM_APDU [05:49:50]CAPDU: 80 13 01 00 [05:49:50]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [05:49:50]Write i2c OK [05:49:50]MH_I2C_Read... [05:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:50]Read from MH i2c: E2 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 0E 00 [05:49:50]MH_I2C_Read... [05:49:50]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F0 [05:49:50]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [05:49:50]wFMCommunicate OK [05:49:50]SAM_PROTO_GetShiftState done [05:49:50]FM_GetShiftState done [05:49:50]req_shift_opened done [05:49:50]requested_item shift.open_date is exist - process it [05:49:50]req_shift_open_date [05:49:50]req_shift_open_date done [05:49:50]produce_requested_data done [05:49:50]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34392,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [05:49:50]process_action_free close_receipt [05:49:50]json_value_free [05:49:50]json_value_free done [05:49:50]process_json_proto returns [05:49:50]Send response to host [05:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34392,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [05:49:50]free response buf [05:49:50]execute_script done [05:49:50]execute_script returns [05:49:50]free content buf [05:49:50]Sock 8.Close socket [05:49:50]Sock 8.Thread stoped [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:46]accept exits with 9 [06:25:46]New connection [06:25:46]New thread 3066510692 created [06:25:46]Thread 3066654052 joined [06:25:46]Waiting for new connection... [06:25:46] Sock 9.Parse request [06:25:46]Sock 9.Check first char [06:25:46]Sock 9.First char is OK [06:25:46]request: POST /json_proto HTTP/1.0 [06:25:46]Method: POST [06:25:46]URL: /json_proto [06:25:46]Method is POST - this is cgi request [06:25:46]url: /json_proto [06:25:46]query_string will be loaded in cgi processing [06:25:46]execute_cgi json_proto POST (null) [06:25:46]execute_cgi path=json_proto method=POST [06:25:46]POST find Content-Length [06:25:46]Host: 172.17.38.134:8080 [06:25:46]Content-Length: 656 [06:25:46]Content-Type: application/json [06:25:46] [06:25:46]POST finish read [06:25:46]Found Content-Length = 656 [06:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184166", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:46]execute_script... [06:25:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184166", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:46]POST & json_proto [06:25:46]process_json_proto [06:25:46]json parsed OK: [06:25:46]protocol is kg_v1.0 [06:25:46]action value=close_receipt [06:25:46]process_action close_receipt [06:25:46]cmd_close_receipt [06:25:46]MH_GetDate [06:25:46]Write to MH i2c: F0 00 00 5C 00 4B [06:25:46]Write i2c OK [06:25:46]MH_I2C_Read... [06:25:46]Read from MH i2c: F0 [06:25:46]MH_I2C_Read... [06:25:46]Read from MH i2c: F0 09 00 [06:25:46]MH_I2C_Read... [06:25:46]Read from MH i2c: F0 09 00 5C 00 00 6A CB 73 66 13 9C 7C 64 F1 [06:25:46]GetLastDocTimeStamp 1718862586 [06:25:46]current date 1718864746 [06:25:46]FM_GetShiftState [06:25:46]SAM_PROTO_GetShiftState [06:25:46]wFMCommunicate request_size=4 [06:25:46]MH_SAM_APDU [06:25:46]CAPDU: 80 13 01 00 [06:25:46]Write to MH i2c: E2 08 00 5D 00 80 13 01 00 00 00 00 00 DA [06:25:46]Write i2c OK [06:25:46]MH_I2C_Read... [06:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:46]Read from MH i2c: E2 [06:25:46]MH_I2C_Read... [06:25:46]Read from MH i2c: E2 0E 00 [06:25:46]MH_I2C_Read... [06:25:46]Read from MH i2c: E2 0E 00 5D 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F2 [06:25:46]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [06:25:46]wFMCommunicate OK [06:25:46]SAM_PROTO_GetShiftState done [06:25:46]FM_GetShiftState done [06:25:46]opened in 1718843069 [06:25:46]opened+sec_in_day 1718929469 [06:25:46]quantity*price = 19000 [06:25:46]sum+1 = 19001 [06:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 20.06.2024 06:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34393 ФПД: 15930043674872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T062546&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34393&fm=15930043674872&tin=02508201610067®Number=0000000000092786&sum=19000 0 [06:25:47]StoreToDocumentArchive [06:25:47]shift 325 fd 34393 [06:25:47]save to /storage/0325/doc_00034393 [06:25:47]save last doc name /storage/0325/doc_00034393 to /storage/kkm_last_doc_name [06:25:47]save OK [06:25:47]Clear old archive folders... [06:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:25:47]tlvbuf is 001FE4C0 [06:25:47]SAM_PROTO_ClearQueue [06:25:47]wFMCommunicate request_size=4 [06:25:47]MH_SAM_APDU [06:25:47]CAPDU: 80 09 00 00 [06:25:47]Write to MH i2c: E2 08 00 6A 00 80 09 00 00 00 00 00 00 DC [06:25:47]Write i2c OK [06:25:47]MH_I2C_Read... [06:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:25:47]Read from MH i2c: E2 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [06:25:47]RAPDU: 90 00 [06:25:47]wFMCommunicate OK [06:25:47]SAM_PROTO_ClearQueue done [06:25:47]KKMCreateOFDPacket [06:25:47]OFDProtocolAddRootSTLVToBuf [06:25:47]FM_MakeSignedData [06:25:47]FM_MakeSignedData [06:25:47]SAM_PROTO_SignData [06:25:47]wFMCommunicate request_size=4 [06:25:47]MH_SAM_APDU [06:25:47]CAPDU: 80 0D 01 02 [06:25:47]Write to MH i2c: E2 08 00 6B 00 80 0D 01 02 00 00 00 00 E4 [06:25:47]Write i2c OK [06:25:47]MH_I2C_Read... [06:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:25:47]Read from MH i2c: E2 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [06:25:47]RAPDU: 90 00 [06:25:47]wFMCommunicate OK [06:25:47]wFMCommunicate request_size=255 [06:25:47]MH_SAM_APDU [06:25:47]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6A CB 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:25:47]Write to MH i2c: E2 02 01 6C 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6A CB 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D3 [06:25:47]Write i2c OK [06:25:47]MH_I2C_Read... [06:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:47]Read from MH i2c: E2 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [06:25:47]RAPDU: 90 00 [06:25:47]wFMCommunicate OK [06:25:47]wFMCommunicate request_size=52 [06:25:47]MH_SAM_APDU [06:25:47]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 59 86 00 00 35 04 06 00 0E 7D 00 98 30 F8 [06:25:47]Write to MH i2c: E2 37 00 6D 00 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 59 86 00 00 35 04 06 00 0E 7D 00 98 30 F8 00 00 DD [06:25:47]Write i2c OK [06:25:47]MH_I2C_Read... [06:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:47]Read from MH i2c: E2 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 [06:25:47]MH_I2C_Read... [06:25:47]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [06:25:47]RAPDU: 90 00 [06:25:47]wFMCommunicate OK [06:25:47]wFMCommunicate request_size=4 [06:25:47]MH_SAM_APDU [06:25:47]CAPDU: 80 0D 03 02 [06:25:47]Write to MH i2c: E2 08 00 6E 00 80 0D 03 02 00 00 00 00 E9 [06:25:47]Write i2c OK [06:25:47]MH_I2C_Read... [06:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:25:48]Read from MH i2c: E2 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: E2 0B 00 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: E2 0B 00 6E 00 00 F5 3E 9F 40 48 A2 08 CD 90 00 BB [06:25:48]RAPDU: F5 3E 9F 40 48 A2 08 CD 90 00 [06:25:48]wFMCommunicate OK [06:25:48]SAM_PROTO_SignData done [06:25:48]FM_MakeSignedData done [06:25:48]CreateOFDProtocolMessage [06:25:48]wFMCommunicate request_size=4 [06:25:48]MH_SAM_APDU [06:25:48]CAPDU: 80 11 00 00 [06:25:48]Write to MH i2c: E2 08 00 6F 00 80 11 00 00 00 00 00 00 E9 [06:25:48]Write i2c OK [06:25:48]MH_I2C_Read... [06:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:48]Read from MH i2c: E2 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: E2 17 00 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: E2 17 00 6F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3E [06:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:25:48]wFMCommunicate OK [06:25:48]CreateOFDProtocolMessage done [06:25:48]OFDSenderStorePacket 34393 [06:25:48]StoreOFDPacket docnum=34393 [06:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 7C C8 31 01 15 18 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6A CB 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 59 86 00 00 35 04 06 00 0E 7D 00 98 30 F8 F5 3E 9F 40 48 A2 08 CD [06:25:48]CheckFolder [06:25:48]dirname=/storage/ofd_packets [06:25:48]CheckFolder done [06:25:48]ProducePacketName [06:25:48]name=ofd_packets/00034393 [06:25:48]NVStorageSaveData ofd_packets/00034393 [06:25:48]File name is /storage/ofd_packets/00034393 [06:25:48]Write 343 bytes [06:25:48]NVStorageSaveData done [06:25:48]OFDSenderStorePacket done [06:25:48]KKMCreateOFDPacket done [06:25:48]NVStorageSaveData kkm_last_timestamp [06:25:48]File name is /storage/kkm_last_timestamp [06:25:48]Write 4 bytes [06:25:48]NVStorageSaveData done [06:25:48]ExternCall_PrintAddStr [06:25:48]wPrintStart [06:25:48]Write to MH i2c: 01 00 00 70 00 70 [06:25:48]Write i2c OK [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 07 00 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 07 00 70 00 00 00 00 00 00 FF 0F 85 [06:25:48]RasterBufferAndPrint [06:25:48]line Счет N : (3)184166 [06:25:48]line ИНН: 02508201610067 [06:25:48]line Контрольно-Кассовый Чек [06:25:48]line ПРОДАЖА [06:25:48]line Товар: 4700000480050 [06:25:48]line Напиток Nitro Energy эн green ж/б 0,45л [06:25:48]line 2.000 * 95.00 [06:25:48]line = 190.00 [06:25:48]line НДС 12% НСП 1% [06:25:48]line > о реализуемом товаре [06:25:48]line ИТОГО: 190.00 [06:25:48]line НСП 1% : 1.68 [06:25:48]line НДС 12% : 20.18 [06:25:48]line Наличными: 190.00 [06:25:48]line Безнал.: 0.00 [06:25:48]line Место: АЗС № 120 "Партнер Нефть" [06:25:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:25:48]line СНО: Общий режим [06:25:48]line Чек 3 20.06.2024 06:25 [06:25:48]line Смена: 325 ФФД: 1.0 [06:25:48]line ЗНМ: 0300000172 [06:25:48]line РНМ: 0000000000092786 [06:25:48]line Версия ККМ: 001 [06:25:48]line ФМ: 0000000000875095 [06:25:48]line ФД: 34393 [06:25:48]line ФПД: 15930043674872 [06:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T062546&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34393&fm=15930043674872&tin=02508201610067®Number=0000000000092786&sum=19000 [06:25:48]OFD Sender: Processing packet 34393 [packets to send 8, broken 7] [06:25:48]ProducePacketName [06:25:48]name=ofd_packets/00034393 [06:25:48]OFD Sender: To server: pG, [06:25:48]CommunicateWithHost lk.salyk.kg:30040 [06:25:48]ConnectInit lk.salyk.kg [06:25:48]line 0 [06:25:48]written 0, free lines is 4095 [06:25:48]Connected sock=10 [06:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 7C C8 31 01 15 18 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6A CB 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 59 86 00 00 35 04 06 00 0E 7D 00 98 30 F8 F5 3E 9F 40 48 A2 08 CD [06:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F4 1F 47 00 CE 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 59 86 00 00 F4 03 04 00 35 72 73 66 B6 04 01 00 00 EB 2B B9 4E 98 5C E5 30 [06:25:48]CommunicateWithHost err = 0 [06:25:48]CheckOFDResponse [06:25:48]1017 (14) - 77093643461234 [06:25:48]1041 (16) - 0000000000875095 [06:25:48]1040 (4) - 34393 [06:25:48]1012 (4) - 20.06.2024 00:05 [06:25:48]1206 (1) - 0 [06:25:48]OFD Sender: Remove packet 34393 [06:25:48]ProducePacketName [06:25:48]name=ofd_packets/00034393 [06:25:48]NVStorageDeleteData [06:25:48]Write to MH i2c: 01 00 00 99 00 99 [06:25:48]Write i2c OK [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 07 00 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: 01 07 00 99 00 00 00 00 00 00 E1 0C 8D [06:25:48]RasterBufferAndPrint [06:25:48]line [06:25:48]line [06:25:48]line [06:25:48]line [06:25:48]line [06:25:48]written 0, free lines is 3305 [06:25:48]MH_Cut [06:25:48]Write to MH i2c: D1 01 00 A0 00 01 72 [06:25:48]Write i2c OK [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: D1 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: D1 01 00 [06:25:48]MH_I2C_Read... [06:25:48]Read from MH i2c: D1 01 00 A0 00 00 71 [06:25:48]Write to MH i2c: 01 00 00 A1 00 A1 [06:25:48]Write i2c OK [06:25:48]MH_I2C_Read... [06:25:49]OFD Sender: No OFD packet to send [06:25:49]*** Cut start [06:25:49]*** Partial cut [06:25:49]*** CUTSNS_PIN = 1 [06:25:49]*** CUTSNS_PIN = 0 [06:25:49]*** Brake cut motor [06:25:50]Read from MH i2c: 01 [06:25:50]MH_I2C_Read... [06:25:50]*** Stop cut motor [06:25:50]*** Cut end [06:25:50]Read from MH i2c: 01 07 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [06:25:50]process_action close_receipt done [06:25:50]requested_data is exist [06:25:50]produce_requested_data [06:25:50]requested_item fm.sn is exist - process it [06:25:50]wFMCommunicate request_size=4 [06:25:50]MH_SAM_APDU [06:25:50]CAPDU: 80 11 00 00 [06:25:50]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [06:25:50]Write i2c OK [06:25:50]MH_I2C_Read... [06:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:50]Read from MH i2c: E2 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 17 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 71 [06:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:25:50]wFMCommunicate OK [06:25:50]requested_item fd.num is exist - process it [06:25:50]SAM_PROTO_GetFieldsCounters [06:25:50]wFMCommunicate request_size=4 [06:25:50]MH_SAM_APDU [06:25:50]CAPDU: 80 13 00 00 [06:25:50]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [06:25:50]Write i2c OK [06:25:50]MH_I2C_Read... [06:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:50]Read from MH i2c: E2 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 62 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 62 00 A3 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 59 86 00 00 0E 04 04 00 45 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 77 [06:25: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 59 86 00 00 0E 04 04 00 45 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 [06:25:50]wFMCommunicate OK [06:25:50]SAM_PROTO_GetFieldsCounters done [06:25:50]requested_item shift.num is exist - process it [06:25:50]requested_item shift.opened is exist - process it [06:25:50]req_shift_opened [06:25:50]FM_GetShiftState [06:25:50]SAM_PROTO_GetShiftState [06:25:50]wFMCommunicate request_size=4 [06:25:50]MH_SAM_APDU [06:25:50]CAPDU: 80 13 01 00 [06:25:50]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [06:25:50]Write i2c OK [06:25:50]MH_I2C_Read... [06:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:50]Read from MH i2c: E2 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 0E 00 [06:25:50]MH_I2C_Read... [06:25:50]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 39 [06:25:50]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [06:25:50]wFMCommunicate OK [06:25:50]SAM_PROTO_GetShiftState done [06:25:50]FM_GetShiftState done [06:25:50]req_shift_opened done [06:25:50]requested_item shift.open_date is exist - process it [06:25:50]req_shift_open_date [06:25:50]req_shift_open_date done [06:25:50]produce_requested_data done [06:25:50]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34393,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [06:25:50]process_action_free close_receipt [06:25:50]json_value_free [06:25:50]json_value_free done [06:25:50]process_json_proto returns [06:25:50]Send response to host [06:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34393,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [06:25:50]free response buf [06:25:50]execute_script done [06:25:50]execute_script returns [06:25:50]free content buf [06:25:50]Sock 9.Close socket [06:25:50]Sock 9.Thread stoped [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:54:55]ConnectInit Can't connect to host [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:54]accept exits with 8 [07:55:54]New connection [07:55:54]New thread 3066654052 created [07:55:54]Thread 3066510692 joined [07:55:54]Waiting for new connection... [07:55:54] Sock 8.Parse request [07:55:54]Sock 8.Check first char [07:55:54]Sock 8.First char is OK [07:55:54]request: POST /json_proto HTTP/1.0 [07:55:54]Method: POST [07:55:54]URL: /json_proto [07:55:54]Method is POST - this is cgi request [07:55:54]url: /json_proto [07:55:54]query_string will be loaded in cgi processing [07:55:54]execute_cgi json_proto POST (null) [07:55:54]execute_cgi path=json_proto method=POST [07:55:54]POST find Content-Length [07:55:54]Host: 172.17.38.134:8080 [07:55:54]Content-Length: 621 [07:55:54]Content-Type: application/json [07:55:54] [07:55:54]POST finish read [07:55:54]Found Content-Length = 621 [07:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184167", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [07:55:54]execute_script... [07:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184167", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [07:55:54]POST & json_proto [07:55:54]process_json_proto [07:55:54]json parsed OK: [07:55:54]protocol is kg_v1.0 [07:55:54]action value=close_receipt [07:55:54]process_action close_receipt [07:55:54]cmd_close_receipt [07:55:54]MH_GetDate [07:55:54]Write to MH i2c: F0 00 00 A5 00 94 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 09 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: F0 09 00 A5 00 00 8A E0 73 66 13 9C 7C 64 6F [07:55:54]GetLastDocTimeStamp 1718864746 [07:55:54]current date 1718870154 [07:55:54]FM_GetShiftState [07:55:54]SAM_PROTO_GetShiftState [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 13 01 00 [07:55:54]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 3B [07:55:54]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_GetShiftState done [07:55:54]FM_GetShiftState done [07:55:54]opened in 1718843069 [07:55:54]opened+sec_in_day 1718929469 [07:55:54]quantity*price = 14000 [07:55:54]sum+1 = 14001 [07:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 20.06.2024 07:55 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34394 ФПД: 210911520287439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075554&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34394&fm=210911520287439&tin=02508201610067®Number=0000000000092786&sum=14000 0 [07:55:55]StoreToDocumentArchive [07:55:55]shift 325 fd 34394 [07:55:55]save to /storage/0325/doc_00034394 [07:55:55]save last doc name /storage/0325/doc_00034394 to /storage/kkm_last_doc_name [07:55:55]save OK [07:55:55]Clear old archive folders... [07:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:55:55]tlvbuf is 00228920 [07:55:55]SAM_PROTO_ClearQueue [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 09 00 00 [07:55:55]Write to MH i2c: E2 08 00 B3 00 80 09 00 00 00 00 00 00 25 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]SAM_PROTO_ClearQueue done [07:55:55]KKMCreateOFDPacket [07:55:55]OFDProtocolAddRootSTLVToBuf [07:55:55]FM_MakeSignedData [07:55:55]FM_MakeSignedData [07:55:55]SAM_PROTO_SignData [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 01 02 [07:55:55]Write to MH i2c: E2 08 00 B4 00 80 0D 01 02 00 00 00 00 2D [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=255 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 04 00 00 00 F4 03 04 00 8A E0 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [07:55:55]Write to MH i2c: E2 02 01 B5 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 04 00 00 00 F4 03 04 00 8A E0 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 B6 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=32 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 5A 86 00 00 35 04 06 00 BF D2 AA 3E EA CF [07:55:55]Write to MH i2c: E2 23 00 B6 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 5A 86 00 00 35 04 06 00 BF D2 AA 3E EA CF 00 00 A1 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [07:55:55]RAPDU: 90 00 [07:55:55]wFMCommunicate OK [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 0D 03 02 [07:55:55]Write to MH i2c: E2 08 00 B7 00 80 0D 03 02 00 00 00 00 32 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 0B 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 0B 00 B7 00 00 D4 96 C2 F8 15 F2 1F 71 90 00 EE [07:55:55]RAPDU: D4 96 C2 F8 15 F2 1F 71 90 00 [07:55:55]wFMCommunicate OK [07:55:55]SAM_PROTO_SignData done [07:55:55]FM_MakeSignedData done [07:55:55]CreateOFDProtocolMessage [07:55:55]wFMCommunicate request_size=4 [07:55:55]MH_SAM_APDU [07:55:55]CAPDU: 80 11 00 00 [07:55:55]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:55]Read from MH i2c: E2 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 17 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 87 [07:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:55:55]wFMCommunicate OK [07:55:55]CreateOFDProtocolMessage done [07:55:55]OFDSenderStorePacket 34394 [07:55:55]StoreOFDPacket docnum=34394 [07:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 87 52 1D 01 6E 65 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 04 00 00 00 F4 03 04 00 8A E0 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5A 86 00 00 35 04 06 00 BF D2 AA 3E EA CF D4 96 C2 F8 15 F2 1F 71 [07:55:55]CheckFolder [07:55:55]dirname=/storage/ofd_packets [07:55:55]CheckFolder done [07:55:55]ProducePacketName [07:55:55]name=ofd_packets/00034394 [07:55:55]NVStorageSaveData ofd_packets/00034394 [07:55:55]File name is /storage/ofd_packets/00034394 [07:55:55]Write 323 bytes [07:55:55]NVStorageSaveData done [07:55:55]OFDSenderStorePacket done [07:55:55]KKMCreateOFDPacket done [07:55:55]NVStorageSaveData kkm_last_timestamp [07:55:55]File name is /storage/kkm_last_timestamp [07:55:55]Write 4 bytes [07:55:55]NVStorageSaveData done [07:55:55]ExternCall_PrintAddStr [07:55:55]wPrintStart [07:55:55]Write to MH i2c: 01 00 00 B9 00 B9 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [07:55:55]RasterBufferAndPrint [07:55:55]line Счет N : (3)184167 [07:55:55]line ИНН: 02508201610067 [07:55:55]line Контрольно-Кассовый Чек [07:55:55]line ПРОДАЖА [07:55:55]line Товар: 48743570 [07:55:55]line Сигареты Winston XStyle Blue [07:55:55]line 1.000 * 140.00 [07:55:55]line = 140.00 [07:55:55]line НДС 12% НСП 1% [07:55:55]line > о реализуемом товаре [07:55:55]line ИТОГО: 140.00 [07:55:55]line НСП 1% : 1.24 [07:55:55]line НДС 12% : 14.87 [07:55:55]line Наличными: 140.00 [07:55:55]line Безнал.: 0.00 [07:55:55]line Место: АЗС № 120 "Партнер Нефть" [07:55:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:55:55]line СНО: Общий режим [07:55:55]line Чек 4 20.06.2024 07:55 [07:55:55]line Смена: 325 ФФД: 1.0 [07:55:55]line ЗНМ: 0300000172 [07:55:55]line РНМ: 0000000000092786 [07:55:55]line Версия ККМ: 001 [07:55:55]line ФМ: 0000000000875095 [07:55:55]line ФД: 34394 [07:55:55]line ФПД: 210911520287439 [07:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075554&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34394&fm=210911520287439&tin=02508201610067®Number=0000000000092786&sum=14000 [07:55:56]line 0 [07:55:56]OFD Sender: Processing packet 34394 [packets to send 8, broken 7] [07:55:56]ProducePacketName [07:55:56]name=ofd_packets/00034394 [07:55:56]OFD Sender: To server: pG, [07:55:56]CommunicateWithHost lk.salyk.kg:30040 [07:55:56]ConnectInit lk.salyk.kg [07:55:56]written 0, free lines is 4095 [07:55:56]Connected sock=11 [07:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 87 52 1D 01 6E 65 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 04 00 00 00 F4 03 04 00 8A E0 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5A 86 00 00 35 04 06 00 BF D2 AA 3E EA CF D4 96 C2 F8 15 F2 1F 71 [07:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 EE 1E 47 00 90 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5A 86 00 00 F4 03 04 00 55 87 73 66 B6 04 01 00 00 E3 BD EB 7C 68 49 94 9D [07:55:56]CommunicateWithHost err = 0 [07:55:56]CheckOFDResponse [07:55:56]1017 (14) - 77093643461234 [07:55:56]1041 (16) - 0000000000875095 [07:55:56]1040 (4) - 34394 [07:55:56]1012 (4) - 20.06.2024 01:35 [07:55:56]1206 (1) - 0 [07:55:56]OFD Sender: Remove packet 34394 [07:55:56]ProducePacketName [07:55:56]name=ofd_packets/00034394 [07:55:56]NVStorageDeleteData [07:55:56]Write to MH i2c: 01 00 00 E1 00 E1 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 07 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 F0 0C E4 [07:55:56]RasterBufferAndPrint [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]line [07:55:56]written 0, free lines is 3318 [07:55:56]MH_Cut [07:55:56]Write to MH i2c: D1 01 00 E8 00 01 BA [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 01 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: D1 01 00 E8 00 00 B9 [07:55:56]Write to MH i2c: 01 00 00 E9 00 E9 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:57]OFD Sender: No OFD packet to send [07:55:57]*** Cut start [07:55:57]*** Partial cut [07:55:57]*** CUTSNS_PIN = 1 [07:55:57]*** CUTSNS_PIN = 0 [07:55:57]*** Brake cut motor [07:55:57]Read from MH i2c: 01 [07:55:57]MH_I2C_Read... [07:55:57]*** Stop cut motor [07:55:57]*** Cut end [07:55:57]Read from MH i2c: 01 07 00 [07:55:57]MH_I2C_Read... [07:55:57]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [07:55:57]process_action close_receipt done [07:55:57]requested_data is exist [07:55:57]produce_requested_data [07:55:57]requested_item fm.sn is exist - process it [07:55:57]wFMCommunicate request_size=4 [07:55:57]MH_SAM_APDU [07:55:57]CAPDU: 80 11 00 00 [07:55:57]Write to MH i2c: E2 08 00 EA 00 80 11 00 00 00 00 00 00 64 [07:55:57]Write i2c OK [07:55:57]MH_I2C_Read... [07:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:58]Read from MH i2c: E2 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 17 00 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 17 00 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B9 [07:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:55:58]wFMCommunicate OK [07:55:58]requested_item fd.num is exist - process it [07:55:58]SAM_PROTO_GetFieldsCounters [07:55:58]wFMCommunicate request_size=4 [07:55:58]MH_SAM_APDU [07:55:58]CAPDU: 80 13 00 00 [07:55:58]Write to MH i2c: E2 08 00 EB 00 80 13 00 00 00 00 00 00 67 [07:55:58]Write i2c OK [07:55:58]MH_I2C_Read... [07:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:58]Read from MH i2c: E2 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 62 00 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 62 00 EB 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5A 86 00 00 0E 04 04 00 45 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 C3 [07:55: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5A 86 00 00 0E 04 04 00 45 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 [07:55:58]wFMCommunicate OK [07:55:58]SAM_PROTO_GetFieldsCounters done [07:55:58]requested_item shift.num is exist - process it [07:55:58]requested_item shift.opened is exist - process it [07:55:58]req_shift_opened [07:55:58]FM_GetShiftState [07:55:58]SAM_PROTO_GetShiftState [07:55:58]wFMCommunicate request_size=4 [07:55:58]MH_SAM_APDU [07:55:58]CAPDU: 80 13 01 00 [07:55:58]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [07:55:58]Write i2c OK [07:55:58]MH_I2C_Read... [07:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:58]Read from MH i2c: E2 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 0E 00 [07:55:58]MH_I2C_Read... [07:55:58]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 81 [07:55:58]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [07:55:58]wFMCommunicate OK [07:55:58]SAM_PROTO_GetShiftState done [07:55:58]FM_GetShiftState done [07:55:58]req_shift_opened done [07:55:58]requested_item shift.open_date is exist - process it [07:55:58]req_shift_open_date [07:55:58]req_shift_open_date done [07:55:58]produce_requested_data done [07:55:58]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34394,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [07:55:58]process_action_free close_receipt [07:55:58]json_value_free [07:55:58]json_value_free done [07:55:58]process_json_proto returns [07:55:58]Send response to host [07:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34394,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [07:55:58]free response buf [07:55:58]execute_script done [07:55:58]execute_script returns [07:55:58]free content buf [07:55:58]Sock 8.Close socket [07:55:58]Sock 8.Thread stoped [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:20]accept exits with 9 [08:00:20]New connection [08:00:20]New thread 3066510692 created [08:00:20]Thread 3066654052 joined [08:00:20]Waiting for new connection... [08:00:20] Sock 9.Parse request [08:00:20]Sock 9.Check first char [08:00:20]Sock 9.First char is OK [08:00:20]request: POST /json_proto HTTP/1.0 [08:00:20]Method: POST [08:00:20]URL: /json_proto [08:00:20]Method is POST - this is cgi request [08:00:20]url: /json_proto [08:00:20]query_string will be loaded in cgi processing [08:00:20]execute_cgi json_proto POST (null) [08:00:20]execute_cgi path=json_proto method=POST [08:00:20]POST find Content-Length [08:00:20]Host: 172.17.38.134:8080 [08:00:20]Content-Length: 673 [08:00:20]Content-Type: application/json [08:00:20] [08:00:20]POST finish read [08:00:20]Found Content-Length = 673 [08:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184168", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:20]execute_script... [08:00:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184168", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:20]POST & json_proto [08:00:20]process_json_proto [08:00:20]json parsed OK: [08:00:20]protocol is kg_v1.0 [08:00:20]action value=close_receipt [08:00:20]process_action close_receipt [08:00:20]cmd_close_receipt [08:00:20]MH_GetDate [08:00:20]Write to MH i2c: F0 00 00 ED 00 DC [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: F0 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: F0 09 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: F0 09 00 ED 00 00 94 E1 73 66 13 9C 7C 64 C2 [08:00:20]GetLastDocTimeStamp 1718870154 [08:00:20]current date 1718870420 [08:00:20]FM_GetShiftState [08:00:20]SAM_PROTO_GetShiftState [08:00:20]wFMCommunicate request_size=4 [08:00:20]MH_SAM_APDU [08:00:20]CAPDU: 80 13 01 00 [08:00:20]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [08:00:20]Write i2c OK [08:00:20]MH_I2C_Read... [08:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:20]Read from MH i2c: E2 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 0E 00 [08:00:20]MH_I2C_Read... [08:00:20]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 83 [08:00:20]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:00:20]wFMCommunicate OK [08:00:20]SAM_PROTO_GetShiftState done [08:00:20]FM_GetShiftState done [08:00:20]opened in 1718843069 [08:00:20]opened+sec_in_day 1718929469 [08:00:20]quantity*price = 22500 [08:00:20]sum+1 = 22501 [08:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 20.06.2024 08:00 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34395 ФПД: 71669806613743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080020&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34395&fm=71669806613743&tin=02508201610067®Number=0000000000092786&sum=22500 0 [08:00:21]StoreToDocumentArchive [08:00:21]shift 325 fd 34395 [08:00:21]save to /storage/0325/doc_00034395 [08:00:21]save last doc name /storage/0325/doc_00034395 to /storage/kkm_last_doc_name [08:00:21]save OK [08:00:21]Clear old archive folders... [08:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=297 [08:00:21]tlvbuf is 0021DCA0 [08:00:21]SAM_PROTO_ClearQueue [08:00:21]wFMCommunicate request_size=4 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 09 00 00 [08:00:21]Write to MH i2c: E2 08 00 FB 00 80 09 00 00 00 00 00 00 6D [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [08:00:21]RAPDU: 90 00 [08:00:21]wFMCommunicate OK [08:00:21]SAM_PROTO_ClearQueue done [08:00:21]KKMCreateOFDPacket [08:00:21]OFDProtocolAddRootSTLVToBuf [08:00:21]FM_MakeSignedData [08:00:21]FM_MakeSignedData [08:00:21]SAM_PROTO_SignData [08:00:21]wFMCommunicate request_size=4 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 0D 01 02 [08:00:21]Write to MH i2c: E2 08 00 FC 00 80 0D 01 02 00 00 00 00 75 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [08:00:21]RAPDU: 90 00 [08:00:21]wFMCommunicate OK [08:00:21]wFMCommunicate request_size=255 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 94 E1 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [08:00:21]Write to MH i2c: E2 02 01 FD 00 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 94 E1 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 4E [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [08:00:21]RAPDU: 90 00 [08:00:21]wFMCommunicate OK [08:00:21]wFMCommunicate request_size=56 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5B 86 00 00 35 04 06 00 41 2E ED 5D 44 EF [08:00:21]Write to MH i2c: E2 3B 00 FE 00 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5B 86 00 00 35 04 06 00 41 2E ED 5D 44 EF 00 00 D9 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [08:00:21]RAPDU: 90 00 [08:00:21]wFMCommunicate OK [08:00:21]wFMCommunicate request_size=4 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 0D 03 02 [08:00:21]Write to MH i2c: E2 08 00 FF 00 80 0D 03 02 00 00 00 00 7A [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 0B 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 0B 00 FF 00 00 FC 6B 85 FB 4F 45 1C 95 90 00 A7 [08:00:21]RAPDU: FC 6B 85 FB 4F 45 1C 95 90 00 [08:00:21]wFMCommunicate OK [08:00:21]SAM_PROTO_SignData done [08:00:21]FM_MakeSignedData done [08:00:21]CreateOFDProtocolMessage [08:00:21]wFMCommunicate request_size=4 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 11 00 00 [08:00:21]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 17 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D0 [08:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:00:21]wFMCommunicate OK [08:00:21]CreateOFDProtocolMessage done [08:00:21]OFDSenderStorePacket 34395 [08:00:21]StoreOFDPacket docnum=34395 [08:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3D 01 00 00 27 B3 35 01 72 95 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 94 E1 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5B 86 00 00 35 04 06 00 41 2E ED 5D 44 EF FC 6B 85 FB 4F 45 1C 95 [08:00:21]CheckFolder [08:00:21]dirname=/storage/ofd_packets [08:00:21]CheckFolder done [08:00:21]ProducePacketName [08:00:21]name=ofd_packets/00034395 [08:00:21]NVStorageSaveData ofd_packets/00034395 [08:00:21]File name is /storage/ofd_packets/00034395 [08:00:21]Write 347 bytes [08:00:21]NVStorageSaveData done [08:00:21]OFDSenderStorePacket done [08:00:21]KKMCreateOFDPacket done [08:00:21]NVStorageSaveData kkm_last_timestamp [08:00:21]File name is /storage/kkm_last_timestamp [08:00:21]Write 4 bytes [08:00:21]NVStorageSaveData done [08:00:21]ExternCall_PrintAddStr [08:00:21]wPrintStart [08:00:21]Write to MH i2c: 01 00 00 01 01 02 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 07 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [08:00:21]RasterBufferAndPrint [08:00:21]line Счет N : (3)184168 [08:00:21]line ИНН: 02508201610067 [08:00:21]line Контрольно-Кассовый Чек [08:00:21]line ПРОДАЖА [08:00:21]line Товар: 4670003190051 [08:00:21]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [08:00:21]line 1.000 * 225.00 [08:00:21]line = 225.00 [08:00:21]line НДС 12% НСП 1% [08:00:21]line > о реализуемом товаре [08:00:21]line ИТОГО: 225.00 [08:00:21]line НСП 1% : 1.99 [08:00:21]line НДС 12% : 23.89 [08:00:21]line Наличными: 225.00 [08:00:21]line Безнал.: 0.00 [08:00:21]line Место: АЗС № 120 "Партнер Нефть" [08:00:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:00:21]line СНО: Общий режим [08:00:21]line Чек 5 20.06.2024 08:00 [08:00:21]line Смена: 325 ФФД: 1.0 [08:00:21]line ЗНМ: 0300000172 [08:00:21]line РНМ: 0000000000092786 [08:00:21]line Версия ККМ: 001 [08:00:21]line ФМ: 0000000000875095 [08:00:21]line ФД: 34395 [08:00:21]line ФПД: 71669806613743 [08:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080020&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34395&fm=71669806613743&tin=02508201610067®Number=0000000000092786&sum=22500 [08:00:22]line 0 [08:00:22]OFD Sender: Processing packet 34395 [packets to send 8, broken 7] [08:00:22]ProducePacketName [08:00:22]name=ofd_packets/00034395 [08:00:22]OFD Sender: To server: pG, [08:00:22]CommunicateWithHost lk.salyk.kg:30040 [08:00:22]ConnectInit lk.salyk.kg [08:00:22]written 0, free lines is 4095 [08:00:22]Connected sock=10 [08:00:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3D 01 00 00 27 B3 35 01 72 95 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 94 E1 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5B 86 00 00 35 04 06 00 41 2E ED 5D 44 EF FC 6B 85 FB 4F 45 1C 95 [08:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8C CB 47 00 41 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5B 86 00 00 F4 03 04 00 5F 88 73 66 B6 04 01 00 00 E7 EF B0 0C 25 CB 23 2E [08:00:22]CommunicateWithHost err = 0 [08:00:22]CheckOFDResponse [08:00:22]1017 (14) - 77093643461234 [08:00:22]1041 (16) - 0000000000875095 [08:00:22]1040 (4) - 34395 [08:00:22]1012 (4) - 20.06.2024 01:39 [08:00:22]1206 (1) - 0 [08:00:22]OFD Sender: Remove packet 34395 [08:00:22]ProducePacketName [08:00:22]name=ofd_packets/00034395 [08:00:22]NVStorageDeleteData [08:00:22]Write to MH i2c: 01 00 00 2A 01 2B [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 07 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 EB 0C 29 [08:00:22]RasterBufferAndPrint [08:00:22]line [08:00:22]line [08:00:22]line [08:00:22]line [08:00:22]line [08:00:22]written 0, free lines is 3316 [08:00:22]MH_Cut [08:00:22]Write to MH i2c: D1 01 00 31 01 01 04 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: D1 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: D1 01 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: D1 01 00 31 01 00 03 [08:00:22]Write to MH i2c: 01 00 00 32 01 33 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:23]OFD Sender: No OFD packet to send [08:00:23]*** Cut start [08:00:23]*** Partial cut [08:00:23]*** CUTSNS_PIN = 1 [08:00:23]*** CUTSNS_PIN = 0 [08:00:23]*** Brake cut motor [08:00:24]Read from MH i2c: 01 [08:00:24]MH_I2C_Read... [08:00:24]*** Stop cut motor [08:00:24]*** Cut end [08:00:24]Read from MH i2c: 01 07 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [08:00:24]process_action close_receipt done [08:00:24]requested_data is exist [08:00:24]produce_requested_data [08:00:24]requested_item fm.sn is exist - process it [08:00:24]wFMCommunicate request_size=4 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 11 00 00 [08:00:24]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 17 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 03 [08:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:00:24]wFMCommunicate OK [08:00:24]requested_item fd.num is exist - process it [08:00:24]SAM_PROTO_GetFieldsCounters [08:00:24]wFMCommunicate request_size=4 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 13 00 00 [08:00:24]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 62 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 62 00 34 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5B 86 00 00 0E 04 04 00 45 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 11 [08:00: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5B 86 00 00 0E 04 04 00 45 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 [08:00:24]wFMCommunicate OK [08:00:24]SAM_PROTO_GetFieldsCounters done [08:00:24]requested_item shift.num is exist - process it [08:00:24]requested_item shift.opened is exist - process it [08:00:24]req_shift_opened [08:00:24]FM_GetShiftState [08:00:24]SAM_PROTO_GetShiftState [08:00:24]wFMCommunicate request_size=4 [08:00:24]MH_SAM_APDU [08:00:24]CAPDU: 80 13 01 00 [08:00:24]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:24]Read from MH i2c: E2 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 0E 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CB [08:00:24]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:00:24]wFMCommunicate OK [08:00:24]SAM_PROTO_GetShiftState done [08:00:24]FM_GetShiftState done [08:00:24]req_shift_opened done [08:00:24]requested_item shift.open_date is exist - process it [08:00:24]req_shift_open_date [08:00:24]req_shift_open_date done [08:00:24]produce_requested_data done [08:00:24]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34395,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [08:00:24]process_action_free close_receipt [08:00:24]json_value_free [08:00:24]json_value_free done [08:00:24]process_json_proto returns [08:00:24]Send response to host [08:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34395,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [08:00:24]free response buf [08:00:24]execute_script done [08:00:24]execute_script returns [08:00:24]free content buf [08:00:24]Sock 9.Close socket [08:00:24]Sock 9.Thread stoped [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:35]accept exits with 8 [08:27:35]New connection [08:27:35]New thread 3066654052 created [08:27:35]Thread 3066510692 joined [08:27:35]Waiting for new connection... [08:27:35] Sock 8.Parse request [08:27:35]Sock 8.Check first char [08:27:35]Sock 8.First char is OK [08:27:35]request: POST /json_proto HTTP/1.0 [08:27:35]Method: POST [08:27:35]URL: /json_proto [08:27:35]Method is POST - this is cgi request [08:27:35]url: /json_proto [08:27:35]query_string will be loaded in cgi processing [08:27:35]execute_cgi json_proto POST (null) [08:27:35]execute_cgi path=json_proto method=POST [08:27:35]POST find Content-Length [08:27:35]Host: 172.17.38.134:8080 [08:27:35]Content-Length: 1309 [08:27:35]Content-Type: application/json [08:27:35] [08:27:35]POST finish read [08:27:35]Found Content-Length = 1309 [08:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184169", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 358.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:35]execute_script... [08:27:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184169", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 358.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:35]POST & json_proto [08:27:35]process_json_proto [08:27:35]json parsed OK: [08:27:35]protocol is kg_v1.0 [08:27:35]action value=close_receipt [08:27:35]process_action close_receipt [08:27:35]cmd_close_receipt [08:27:35]MH_GetDate [08:27:35]Write to MH i2c: F0 00 00 36 01 26 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 09 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 09 00 36 01 00 F8 E7 73 66 13 9C 7C 64 76 [08:27:35]GetLastDocTimeStamp 1718870420 [08:27:35]current date 1718872056 [08:27:35]FM_GetShiftState [08:27:35]SAM_PROTO_GetShiftState [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 13 01 00 [08:27:35]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0E 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CD [08:27:35]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:27:35]wFMCommunicate OK [08:27:35]SAM_PROTO_GetShiftState done [08:27:35]FM_GetShiftState done [08:27:35]opened in 1718843069 [08:27:35]opened+sec_in_day 1718929469 [08:27:35]quantity*price = 13800 [08:27:35]sum+1 = 13801 [08:27:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 358.00 НСП 1% : 3.17 НДС 12% : 38.01 Наличными: 0.00 Безнал.: 358.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 20.06.2024 08:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34396 ФПД: 107277485998656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T082736&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34396&fm=107277485998656&tin=02508201610067®Number=0000000000092786&sum=35800 0 [08:27:36]StoreToDocumentArchive [08:27:36]shift 325 fd 34396 [08:27:36]save to /storage/0325/doc_00034396 [08:27:36]save last doc name /storage/0325/doc_00034396 to /storage/kkm_last_doc_name [08:27:36]save OK [08:27:36]Clear old archive folders... [08:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=498 [08:27:36]tlvbuf is 001F2620 [08:27:36]SAM_PROTO_ClearQueue [08:27:36]wFMCommunicate request_size=4 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 09 00 00 [08:27:36]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 03 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [08:27:36]RAPDU: 90 00 [08:27:36]wFMCommunicate OK [08:27:36]SAM_PROTO_ClearQueue done [08:27:36]KKMCreateOFDPacket [08:27:36]OFDProtocolAddRootSTLVToBuf [08:27:36]FM_MakeSignedData [08:27:36]FM_MakeSignedData [08:27:36]SAM_PROTO_SignData [08:27:36]wFMCommunicate request_size=4 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 0D 01 02 [08:27:36]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 03 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [08:27:36]RAPDU: 90 00 [08:27:36]wFMCommunicate OK [08:27:36]wFMCommunicate request_size=255 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A [08:27:37]Write to MH i2c: E2 02 01 46 01 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A 00 00 C7 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=255 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 02 02 FA D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 8B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E7 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5C 86 00 00 35 04 06 00 61 91 7C 72 [08:27:37]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 8B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E7 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5C 86 00 00 35 04 06 00 61 91 7C 72 00 00 E7 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=7 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 02 02 02 02 40 [08:27:37]Write to MH i2c: E2 0A 00 48 01 80 0D 02 02 02 00 02 40 00 00 09 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 03 02 [08:27:37]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0B 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0B 00 49 01 00 E6 7D A7 0E 16 2F 6A 85 90 00 12 [08:27:37]RAPDU: E6 7D A7 0E 16 2F 6A 85 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_SignData done [08:27:37]FM_MakeSignedData done [08:27:37]CreateOFDProtocolMessage [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 11 00 00 [08:27:37]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [08:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:27:37]wFMCommunicate OK [08:27:37]CreateOFDProtocolMessage done [08:27:37]OFDSenderStorePacket 34396 [08:27:37]StoreOFDPacket docnum=34396 [08:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 06 02 00 00 B9 A1 FE 01 BD 79 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 8B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E7 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5C 86 00 00 35 04 06 00 61 91 7C 72 02 40 E6 7D A7 0E 16 2F 6A 85 [08:27:37]CheckFolder [08:27:37]dirname=/storage/ofd_packets [08:27:37]CheckFolder done [08:27:37]ProducePacketName [08:27:37]name=ofd_packets/00034396 [08:27:37]NVStorageSaveData ofd_packets/00034396 [08:27:37]File name is /storage/ofd_packets/00034396 [08:27:37]Write 548 bytes [08:27:37]NVStorageSaveData done [08:27:37]OFDSenderStorePacket done [08:27:37]KKMCreateOFDPacket done [08:27:37]NVStorageSaveData kkm_last_timestamp [08:27:37]File name is /storage/kkm_last_timestamp [08:27:37]Write 4 bytes [08:27:37]NVStorageSaveData done [08:27:37]ExternCall_PrintAddStr [08:27:37]wPrintStart [08:27:37]Write to MH i2c: 01 00 00 4B 01 4C [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [08:27:37]RasterBufferAndPrint [08:27:37]line Счет N : (3)184169 [08:27:37]line ИНН: 02508201610067 [08:27:37]line Контрольно-Кассовый Чек [08:27:37]line ПРОДАЖА [08:27:37]line Товар: 4640030091607 [08:27:37]line Сигареты ESSE Exchange [08:27:37]line 1.000 * 138.00 [08:27:37]line = 138.00 [08:27:37]line НДС 12% НСП 1% [08:27:37]line > о реализуемом товаре [08:27:37]line Товар: 2000036220012 [08:27:37]line Кофе Капучино XL(GABB TRADE) [08:27:37]line 1.000 * 125.00 [08:27:37]line = 125.00 [08:27:37]line НДС 12% НСП 1% [08:27:37]line > о реализуемом товаре [08:27:37]line Товар: 2000036190018 [08:27:37]line Кофе Американо XL(GABB TRADE) [08:27:37]line 1.000 * 95.00 [08:27:37]line = 95.00 [08:27:37]line НДС 12% НСП 1% [08:27:37]line > о реализуемом товаре [08:27:37]line ИТОГО: 358.00 [08:27:37]line НСП 1% : 3.17 [08:27:37]line НДС 12% : 38.01 [08:27:37]line Наличными: 0.00 [08:27:37]line Безнал.: 358.00 [08:27:37]line Место: АЗС № 120 "Партнер Нефть" [08:27:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:27:37]line СНО: Общий режим [08:27:37]line Чек 6 20.06.2024 08:27 [08:27:37]line Смена: 325 ФФД: 1.0 [08:27:37]line ЗНМ: 0300000172 [08:27:37]line РНМ: 0000000000092786 [08:27:37]line Версия ККМ: 001 [08:27:37]line Платежная система: O! деньги [08:27:37]line ФМ: 0000000000875095 [08:27:37]line ФД: 34396 [08:27:37]line ФПД: 107277485998656 [08:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T082736&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34396&fm=107277485998656&tin=02508201610067®Number=0000000000092786&sum=35800 [08:27:38]line 0 [08:27:38]OFD Sender: Processing packet 34396 [packets to send 8, broken 7] [08:27:38]ProducePacketName [08:27:38]name=ofd_packets/00034396 [08:27:38]OFD Sender: To server: pG, [08:27:38]CommunicateWithHost lk.salyk.kg:30040 [08:27:38]ConnectInit lk.salyk.kg [08:27:38]written 0, free lines is 4095 [08:27:38]Connected sock=10 [08:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 06 02 00 00 B9 A1 FE 01 BD 79 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 8B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F8 E7 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5C 86 00 00 35 04 06 00 61 91 7C 72 02 40 E6 7D A7 0E 16 2F 6A 85 [08:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E1 7B 47 00 61 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 35 30 39 35 10 04 04 00 5C 86 00 00 F4 03 04 00 C3 8E 73 66 B6 04 01 00 00 40 AF 5C 59 11 0A 21 36 [08:27:38]CommunicateWithHost err = 0 [08:27:38]CheckOFDResponse [08:27:38]1017 (14) - 77093643461234 [08:27:38]1041 (16) - 0000000000875095 [08:27:38]1040 (4) - 34396 [08:27:38]1012 (4) - 20.06.2024 02:06 [08:27:38]1206 (1) - 0 [08:27:38]OFD Sender: Remove packet 34396 [08:27:38]ProducePacketName [08:27:38]name=ofd_packets/00034396 [08:27:38]NVStorageDeleteData [08:27:38]Write to MH i2c: 01 00 00 83 01 84 [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 07 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FD 0B 93 [08:27:38]RasterBufferAndPrint [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]written 0, free lines is 3075 [08:27:38]MH_Cut [08:27:38]Write to MH i2c: D1 01 00 8A 01 01 5D [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 01 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 01 00 8A 01 00 5C [08:27:38]Write to MH i2c: 01 00 00 8B 01 8C [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]OFD Sender: No OFD packet to send [08:27:39]*** Cut start [08:27:39]*** Partial cut [08:27:39]*** CUTSNS_PIN = 1 [08:27:39]*** CUTSNS_PIN = 0 [08:27:39]*** Brake cut motor [08:27:40]Read from MH i2c: 01 [08:27:40]MH_I2C_Read... [08:27:40]*** Stop cut motor [08:27:40]*** Cut end [08:27:40]Read from MH i2c: 01 07 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [08:27:40]process_action close_receipt done [08:27:40]requested_data is exist [08:27:40]produce_requested_data [08:27:40]requested_item fm.sn is exist - process it [08:27:40]wFMCommunicate request_size=4 [08:27:40]MH_SAM_APDU [08:27:40]CAPDU: 80 11 00 00 [08:27:40]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [08:27:40]Write i2c OK [08:27:40]MH_I2C_Read... [08:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:40]Read from MH i2c: E2 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 17 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 5C [08:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:27:40]wFMCommunicate OK [08:27:40]requested_item fd.num is exist - process it [08:27:40]SAM_PROTO_GetFieldsCounters [08:27:40]wFMCommunicate request_size=4 [08:27:40]MH_SAM_APDU [08:27:40]CAPDU: 80 13 00 00 [08:27:40]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [08:27:40]Write i2c OK [08:27:40]MH_I2C_Read... [08:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:40]Read from MH i2c: E2 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 62 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 62 00 8D 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5C 86 00 00 0E 04 04 00 45 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 6E [08: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5C 86 00 00 0E 04 04 00 45 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 [08:27:40]wFMCommunicate OK [08:27:40]SAM_PROTO_GetFieldsCounters done [08:27:40]requested_item shift.num is exist - process it [08:27:40]requested_item shift.opened is exist - process it [08:27:40]req_shift_opened [08:27:40]FM_GetShiftState [08:27:40]SAM_PROTO_GetShiftState [08:27:40]wFMCommunicate request_size=4 [08:27:40]MH_SAM_APDU [08:27:40]CAPDU: 80 13 01 00 [08:27:40]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [08:27:40]Write i2c OK [08:27:40]MH_I2C_Read... [08:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:40]Read from MH i2c: E2 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 0E 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 24 [08:27:40]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:27:40]wFMCommunicate OK [08:27:40]SAM_PROTO_GetShiftState done [08:27:40]FM_GetShiftState done [08:27:40]req_shift_opened done [08:27:40]requested_item shift.open_date is exist - process it [08:27:40]req_shift_open_date [08:27:40]req_shift_open_date done [08:27:40]produce_requested_data done [08:27:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34396,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [08:27:40]process_action_free close_receipt [08:27:40]json_value_free [08:27:40]json_value_free done [08:27:40]process_json_proto returns [08:27:40]Send response to host [08:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34396,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [08:27:40]free response buf [08:27:40]execute_script done [08:27:40]execute_script returns [08:27:40]free content buf [08:27:40]Sock 8.Close socket [08:27:40]Sock 8.Thread stoped [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]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 [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:39]accept exits with 9 [08:54:39]New connection [08:54:39]New thread 3066510692 created [08:54:39]Thread 3066654052 joined [08:54:39]Waiting for new connection... [08:54:39] Sock 9.Parse request [08:54:39]Sock 9.Check first char [08:54:39]Sock 9.First char is OK [08:54:39]request: POST /json_proto HTTP/1.0 [08:54:39]Method: POST [08:54:39]URL: /json_proto [08:54:39]Method is POST - this is cgi request [08:54:39]url: /json_proto [08:54:39]query_string will be loaded in cgi processing [08:54:39]execute_cgi json_proto POST (null) [08:54:39]execute_cgi path=json_proto method=POST [08:54:39]POST find Content-Length [08:54:39]Host: 172.17.38.134:8080 [08:54:39]Content-Length: 649 [08:54:39]Content-Type: application/json [08:54:39] [08:54:39]POST finish read [08:54:39]Found Content-Length = 649 [08:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184170", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:39]execute_script... [08:54:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184170", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:39]POST & json_proto [08:54:39]process_json_proto [08:54:39]json parsed OK: [08:54:39]protocol is kg_v1.0 [08:54:39]action value=close_receipt [08:54:39]process_action close_receipt [08:54:39]cmd_close_receipt [08:54:39]MH_GetDate [08:54:39]Write to MH i2c: F0 00 00 8F 01 7F [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: F0 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: F0 09 00 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: F0 09 00 8F 01 00 50 EE 73 66 13 9C 7C 64 2E [08:54:39]GetLastDocTimeStamp 1718872056 [08:54:39]current date 1718873680 [08:54:39]FM_GetShiftState [08:54:39]SAM_PROTO_GetShiftState [08:54:39]wFMCommunicate request_size=4 [08:54:39]MH_SAM_APDU [08:54:39]CAPDU: 80 13 01 00 [08:54:39]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:39]Read from MH i2c: E2 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 0E 00 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 26 [08:54:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:54:39]wFMCommunicate OK [08:54:39]SAM_PROTO_GetShiftState done [08:54:39]FM_GetShiftState done [08:54:39]opened in 1718843069 [08:54:39]opened+sec_in_day 1718929469 [08:54:39]quantity*price = 15000 [08:54:39]sum+1 = 15001 [08:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 7 20.06.2024 08:54 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34397 ФПД: 200333161819296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085440&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34397&fm=200333161819296&tin=02508201610067®Number=0000000000092786&sum=15000 0 [08:54:39]StoreToDocumentArchive [08:54:39]shift 325 fd 34397 [08:54:39]save to /storage/0325/doc_00034397 [08:54:39]save last doc name /storage/0325/doc_00034397 to /storage/kkm_last_doc_name [08:54:39]save OK [08:54:39]Clear old archive folders... [08:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:54:39]tlvbuf is 001E8BD0 [08:54:39]SAM_PROTO_ClearQueue [08:54:39]wFMCommunicate request_size=4 [08:54:39]MH_SAM_APDU [08:54:39]CAPDU: 80 09 00 00 [08:54:39]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:39]Read from MH i2c: E2 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 03 00 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [08:54:39]RAPDU: 90 00 [08:54:39]wFMCommunicate OK [08:54:39]SAM_PROTO_ClearQueue done [08:54:39]KKMCreateOFDPacket [08:54:39]OFDProtocolAddRootSTLVToBuf [08:54:39]FM_MakeSignedData [08:54:39]FM_MakeSignedData [08:54:39]SAM_PROTO_SignData [08:54:39]wFMCommunicate request_size=4 [08:54:39]MH_SAM_APDU [08:54:39]CAPDU: 80 0D 01 02 [08:54:39]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:54:40]RAPDU: 90 00 [08:54:40]wFMCommunicate OK [08:54:40]wFMCommunicate request_size=255 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 50 EE 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [08:54:40]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 50 EE 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 6A [08:54:40]OFD Sender: No OFD packet to send [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:54:40]RAPDU: 90 00 [08:54:40]wFMCommunicate OK [08:54:40]wFMCommunicate request_size=41 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5D 86 00 00 35 04 06 00 B6 33 B2 F2 6C A0 [08:54:40]Write to MH i2c: E2 2C 00 A0 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5D 86 00 00 35 04 06 00 B6 33 B2 F2 6C A0 00 00 68 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:54:40]RAPDU: 90 00 [08:54:40]wFMCommunicate OK [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 0D 03 02 [08:54:40]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0B 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0B 00 A1 01 00 84 72 F0 3D AE 1C D5 36 90 00 16 [08:54:40]RAPDU: 84 72 F0 3D AE 1C D5 36 90 00 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_SignData done [08:54:40]FM_MakeSignedData done [08:54:40]CreateOFDProtocolMessage [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 11 00 00 [08:54:40]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 72 [08:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:54:40]wFMCommunicate OK [08:54:40]CreateOFDProtocolMessage done [08:54:40]OFDSenderStorePacket 34397 [08:54:40]StoreOFDPacket docnum=34397 [08:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 D3 61 26 01 27 78 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 50 EE 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5D 86 00 00 35 04 06 00 B6 33 B2 F2 6C A0 84 72 F0 3D AE 1C D5 36 [08:54:40]CheckFolder [08:54:40]dirname=/storage/ofd_packets [08:54:40]CheckFolder done [08:54:40]ProducePacketName [08:54:40]name=ofd_packets/00034397 [08:54:40]NVStorageSaveData ofd_packets/00034397 [08:54:40]File name is /storage/ofd_packets/00034397 [08:54:40]Write 332 bytes [08:54:40]NVStorageSaveData done [08:54:40]OFDSenderStorePacket done [08:54:40]KKMCreateOFDPacket done [08:54:40]NVStorageSaveData kkm_last_timestamp [08:54:40]File name is /storage/kkm_last_timestamp [08:54:40]Write 4 bytes [08:54:40]NVStorageSaveData done [08:54:40]ExternCall_PrintAddStr [08:54:40]wPrintStart [08:54:40]Write to MH i2c: 01 00 00 A3 01 A4 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: 01 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: 01 07 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [08:54:40]RasterBufferAndPrint [08:54:40]line Счет N : (3)184170 [08:54:40]line ИНН: 02508201610067 [08:54:40]line Контрольно-Кассовый Чек [08:54:40]line ПРОДАЖА [08:54:40]line Товар: 2000034730018 [08:54:40]line Кофе Американо (GABB TRADE) [08:54:40]line 2.000 * 75.00 [08:54:40]line = 150.00 [08:54:40]line НДС 12% НСП 1% [08:54:40]line > о реализуемом товаре [08:54:40]line ИТОГО: 150.00 [08:54:40]line НСП 1% : 1.33 [08:54:40]line НДС 12% : 15.93 [08:54:40]line Наличными: 150.00 [08:54:40]line Безнал.: 0.00 [08:54:40]line Место: АЗС № 120 "Партнер Нефть" [08:54:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:54:40]line СНО: Общий режим [08:54:40]line Чек 7 20.06.2024 08:54 [08:54:40]line Смена: 325 ФФД: 1.0 [08:54:40]line ЗНМ: 0300000172 [08:54:40]line РНМ: 0000000000092786 [08:54:40]line Версия ККМ: 001 [08:54:40]line ФМ: 0000000000875095 [08:54:40]line ФД: 34397 [08:54:40]line ФПД: 200333161819296 [08:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085440&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34397&fm=200333161819296&tin=02508201610067®Number=0000000000092786&sum=15000 [08:54:40]line 0 [08:54:40]written 0, free lines is 4095 [08:54:40]OFD Sender: Processing packet 34397 [packets to send 8, broken 7] [08:54:40]ProducePacketName [08:54:40]name=ofd_packets/00034397 [08:54:40]OFD Sender: To server: pG, [08:54:40]CommunicateWithHost lk.salyk.kg:30040 [08:54:40]ConnectInit lk.salyk.kg [08:54:40]Connected sock=10 [08:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 D3 61 26 01 27 78 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 50 EE 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5D 86 00 00 35 04 06 00 B6 33 B2 F2 6C A0 84 72 F0 3D AE 1C D5 36 [08:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7B 30 47 00 10 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 35 30 39 35 10 04 04 00 5D 86 00 00 F4 03 04 00 1A 95 73 66 B6 04 01 00 00 96 D9 97 5F 17 1B 5B 4C [08:54:41]CommunicateWithHost err = 0 [08:54:41]CheckOFDResponse [08:54:41]1017 (14) - 77093643461234 [08:54:41]1041 (16) - 0000000000875095 [08:54:41]1040 (4) - 34397 [08:54:41]1012 (4) - 20.06.2024 02:34 [08:54:41]1206 (1) - 0 [08:54:41]OFD Sender: Remove packet 34397 [08:54:41]ProducePacketName [08:54:41]name=ofd_packets/00034397 [08:54:41]NVStorageDeleteData [08:54:41]Write to MH i2c: 01 00 00 CC 01 CD [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 07 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 E4 0C C4 [08:54:41]RasterBufferAndPrint [08:54:41]line [08:54:41]line [08:54:41]line [08:54:41]line [08:54:41]line [08:54:41]written 0, free lines is 3307 [08:54:41]MH_Cut [08:54:41]Write to MH i2c: D1 01 00 D3 01 01 A6 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: D1 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: D1 01 00 [08:54:41]MH_I2C_Read... [08:54:41]Read from MH i2c: D1 01 00 D3 01 00 A5 [08:54:41]Write to MH i2c: 01 00 00 D4 01 D5 [08:54:41]Write i2c OK [08:54:41]MH_I2C_Read... [08:54:41]OFD Sender: No OFD packet to send [08:54:42]*** Cut start [08:54:42]*** Partial cut [08:54:42]*** CUTSNS_PIN = 1 [08:54:42]*** CUTSNS_PIN = 0 [08:54:42]*** Brake cut motor [08:54:42]Read from MH i2c: 01 [08:54:42]MH_I2C_Read... [08:54:42]*** Stop cut motor [08:54:42]*** Cut end [08:54:42]Read from MH i2c: 01 07 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [08:54:42]process_action close_receipt done [08:54:42]requested_data is exist [08:54:42]produce_requested_data [08:54:42]requested_item fm.sn is exist - process it [08:54:42]wFMCommunicate request_size=4 [08:54:42]MH_SAM_APDU [08:54:42]CAPDU: 80 11 00 00 [08:54:42]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [08:54:42]Write i2c OK [08:54:42]MH_I2C_Read... [08:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:42]Read from MH i2c: E2 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 17 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A5 [08:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:54:42]wFMCommunicate OK [08:54:42]requested_item fd.num is exist - process it [08:54:42]SAM_PROTO_GetFieldsCounters [08:54:42]wFMCommunicate request_size=4 [08:54:42]MH_SAM_APDU [08:54:42]CAPDU: 80 13 00 00 [08:54:42]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [08:54:42]Write i2c OK [08:54:42]MH_I2C_Read... [08:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:42]Read from MH i2c: E2 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 62 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 62 00 D6 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 BB [08:54: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 [08:54:42]wFMCommunicate OK [08:54:42]SAM_PROTO_GetFieldsCounters done [08:54:42]requested_item shift.num is exist - process it [08:54:42]requested_item shift.opened is exist - process it [08:54:42]req_shift_opened [08:54:42]FM_GetShiftState [08:54:42]SAM_PROTO_GetShiftState [08:54:42]wFMCommunicate request_size=4 [08:54:42]MH_SAM_APDU [08:54:42]CAPDU: 80 13 01 00 [08:54:42]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [08:54:42]Write i2c OK [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 [08:54:42]MH_I2C_Read... [08:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:42]Read from MH i2c: E2 0E 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 6D [08:54:42]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [08:54:42]wFMCommunicate OK [08:54:42]SAM_PROTO_GetShiftState done [08:54:42]FM_GetShiftState done [08:54:42]req_shift_opened done [08:54:42]requested_item shift.open_date is exist - process it [08:54:42]req_shift_open_date [08:54:42]req_shift_open_date done [08:54:42]produce_requested_data done [08:54:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [08:54:42]process_action_free close_receipt [08:54:42]json_value_free [08:54:42]json_value_free done [08:54:42]process_json_proto returns [08:54:42]Send response to host [08:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [08:54:42]free response buf [08:54:42]execute_script done [08:54:42]execute_script returns [08:54:42]free content buf [08:54:42]Sock 9.Close socket [08:54:42]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:01:58]accept exits with 8 [09:01:58]New connection [09:01:58]New thread 3066654052 created [09:01:58]Thread 3066510692 joined [09:01:58]Waiting for new connection... [09:01:58] Sock 8.Parse request [09:01:58]Sock 8.Check first char [09:01:58]Sock 8.First char is OK [09:01:58]request: POST /json_proto HTTP/1.0 [09:01:58]Method: POST [09:01:58]URL: /json_proto [09:01:58]Method is POST - this is cgi request [09:01:58]url: /json_proto [09:01:58]query_string will be loaded in cgi processing [09:01:58]execute_cgi json_proto POST (null) [09:01:58]execute_cgi path=json_proto method=POST [09:01:58]POST find Content-Length [09:01:58]Host: 172.17.38.134:8080 [09:01:58]Content-Length: 1206 [09:01:58]Content-Type: application/json [09:01:58] [09:01:58]POST finish read [09:01:58]Found Content-Length = 1206 [09:01: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673161\u000A20.06.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:58]execute_script... [09:01: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673161\u000A20.06.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:58]POST & json_proto [09:01:58]process_json_proto [09:01:58]json parsed OK: [09:01:58]protocol is kg_v1.0 [09:01:58]action value=print_text [09:01:58]process_action print_text [09:01:58]cmd_print_text [09:01:58]ExternCall_PrintAddStr [09:01:58]wPrintStart [09:01:58]Write to MH i2c: 01 00 00 D8 01 D9 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [09:01:58]RasterBufferAndPrint [09:01:58]line *****ТОВАРНЫЙ ЧЕК***** [09:01:58]line АЗС 120 [09:01:58]line Партнер нефть [09:01:58]line 02508201610067 [09:01:58]line Кассир : Дуйшенбиев А. [09:01:58]line Счет N : (1)673161 [09:01:58]line 20.06.2024 08:40 [09:01:58]line ПРОДАЖА [09:01:58]line ТРК (МРК, ГНК): 42 [09:01:58]line Вид ГСМ : 2710124130 [09:01:58]line Аи-92-К-5 [09:01:58]line 15.000 x 66.40 [09:01:58]line ИТОГ: 996.00 [09:01:58]line Тип оплаты: Талоны: Топливная Карта [09:01:58]line 00562 [09:01:58]line ______________________ [09:01:58]line (подпись) [09:01:58]written 0, free lines is 4095 [09:01:58]Write to MH i2c: 01 00 00 EC 01 ED [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 11 0E 13 [09:01:58]RasterBufferAndPrint [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]written 0, free lines is 3602 [09:01:58]MH_Cut [09:01:58]Write to MH i2c: D1 01 00 F3 01 01 C6 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 01 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 01 00 F3 01 00 C5 [09:01:58]Write to MH i2c: 01 00 00 F4 01 F5 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:59]*** Cut start [09:01:59]*** Partial cut [09:01:59]*** CUTSNS_PIN = 1 [09:01:59]*** CUTSNS_PIN = 0 [09:01:59]*** Brake cut motor [09:01:59]Read from MH i2c: 01 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 [09:01:59]MH_I2C_Read... [09:01:59]*** Stop cut motor [09:01:59]*** Cut end [09:01:59]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 FF 0F 0A [09:01:59]process_action print_text done [09:01:59]requested_data is exist [09:01:59]produce_requested_data [09:01:59]requested_item fm.sn is exist - process it [09:01:59]wFMCommunicate request_size=4 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 11 00 00 [09:01:59]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 17 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C5 [09:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:01:59]wFMCommunicate OK [09:01:59]requested_item fd.num is exist - process it [09:01:59]SAM_PROTO_GetFieldsCounters [09:01:59]wFMCommunicate request_size=4 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 13 00 00 [09:01:59]Write to MH i2c: E2 08 00 F6 01 80 13 00 00 00 00 00 00 73 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 62 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 62 00 F6 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 DB [09:01: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 [09:01:59]wFMCommunicate OK [09:01:59]SAM_PROTO_GetFieldsCounters done [09:01:59]requested_item shift.num is exist - process it [09:01:59]requested_item shift.opened is exist - process it [09:01:59]req_shift_opened [09:01:59]FM_GetShiftState [09:01:59]SAM_PROTO_GetShiftState [09:01:59]wFMCommunicate request_size=4 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 13 01 00 [09:01:59]Write to MH i2c: E2 08 00 F7 01 80 13 01 00 00 00 00 00 75 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 0E 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 0E 00 F7 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 8D [09:01:59]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:01:59]wFMCommunicate OK [09:01:59]SAM_PROTO_GetShiftState done [09:01:59]FM_GetShiftState done [09:01:59]req_shift_opened done [09:01:59]requested_item shift.open_date is exist - process it [09:01:59]req_shift_open_date [09:01:59]req_shift_open_date done [09:01:59]produce_requested_data done [09:01:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:01:59]process_action_free print_text [09:01:59]json_value_free [09:01:59]json_value_free done [09:01:59]process_json_proto returns [09:01:59]Send response to host [09:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:01:59]free response buf [09:01:59]execute_script done [09:01:59]execute_script returns [09:01:59]free content buf [09:01:59]Sock 8.Close socket [09:01:59]Sock 8.Thread stoped [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:30]accept exits with 9 [09:03:30]New connection [09:03:30]New thread 3066510692 created [09:03:30]Thread 3066654052 joined [09:03:30]Waiting for new connection... [09:03:30] Sock 9.Parse request [09:03:30]Sock 9.Check first char [09:03:30]Sock 9.First char is OK [09:03:30]request: POST /json_proto HTTP/1.0 [09:03:30]Method: POST [09:03:30]URL: /json_proto [09:03:30]Method is POST - this is cgi request [09:03:30]url: /json_proto [09:03:30]query_string will be loaded in cgi processing [09:03:30]execute_cgi json_proto POST (null) [09:03:30]execute_cgi path=json_proto method=POST [09:03:30]POST find Content-Length [09:03:30]Host: 172.17.38.134:8080 [09:03:30]Content-Length: 1212 [09:03:30]Content-Type: application/json [09:03:30] [09:03:30]POST finish read [09:03:30]Found Content-Length = 1212 [09:03:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673163\u000A20.06.2024 08: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(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:30]execute_script... [09:03:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673163\u000A20.06.2024 08: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(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:30]POST & json_proto [09:03:30]process_json_proto [09:03:30]json parsed OK: [09:03:30]protocol is kg_v1.0 [09:03:30]action value=print_text [09:03:30]process_action print_text [09:03:30]cmd_print_text [09:03:30]ExternCall_PrintAddStr [09:03:30]wPrintStart [09:03:30]Write to MH i2c: 01 00 00 F8 01 F9 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [09:03:30]RasterBufferAndPrint [09:03:30]line *****ТОВАРНЫЙ ЧЕК***** [09:03:30]line АЗС 120 [09:03:30]line Партнер нефть [09:03:30]line 02508201610067 [09:03:30]line Кассир : Дуйшенбиев А. [09:03:30]line Счет N : (1)673163 [09:03:30]line 20.06.2024 08:41 [09:03:30]line ПРОДАЖА [09:03:30]line ТРК (МРК, ГНК): 21 [09:03:30]line Вид ГСМ : 2710194210 [09:03:30]line ДТ(л)-К-5 [09:03:30]line 30.000 x 72.90 [09:03:30]line ИТОГ: 2187.00 [09:03:30]line Тип оплаты: Талоны: Топливная Карта [09:03:30]line 00562 [09:03:30]line ______________________ [09:03:30]line (подпись) [09:03:30]written 0, free lines is 4095 [09:03:30]Write to MH i2c: 01 00 00 0C 02 0E [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 10 0E 33 [09:03:30]RasterBufferAndPrint [09:03:30]line [09:03:30]line [09:03:30]line [09:03:30]line [09:03:30]line [09:03:30]written 0, free lines is 3602 [09:03:30]MH_Cut [09:03:30]Write to MH i2c: D1 01 00 13 02 01 E7 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: D1 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: D1 01 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: D1 01 00 13 02 00 E6 [09:03:30]Write to MH i2c: 01 00 00 14 02 16 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:31]*** Cut start [09:03:31]*** Partial cut [09:03:31]*** CUTSNS_PIN = 1 [09:03:31]*** CUTSNS_PIN = 0 [09:03:31]*** Brake cut motor [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]*** Stop cut motor [09:03:31]*** Cut end [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 FF 0F 2B [09:03:31]process_action print_text done [09:03:31]requested_data is exist [09:03:31]produce_requested_data [09:03:31]requested_item fm.sn is exist - process it [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 11 00 00 [09:03:31]Write to MH i2c: E2 08 00 15 02 80 11 00 00 00 00 00 00 91 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 15 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E6 [09:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:03:31]wFMCommunicate OK [09:03:31]requested_item fd.num is exist - process it [09:03:31]SAM_PROTO_GetFieldsCounters [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 13 00 00 [09:03:31]Write to MH i2c: E2 08 00 16 02 80 13 00 00 00 00 00 00 94 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 62 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 62 00 16 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 FC [09: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_GetFieldsCounters done [09:03:32]requested_item shift.num is exist - process it [09:03:32]requested_item shift.opened is exist - process it [09:03:32]req_shift_opened [09:03:32]FM_GetShiftState [09:03:32]SAM_PROTO_GetShiftState [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 13 01 00 [09:03:32]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 0E 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AE [09:03:32]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_GetShiftState done [09:03:32]FM_GetShiftState done [09:03:32]req_shift_opened done [09:03:32]requested_item shift.open_date is exist - process it [09:03:32]req_shift_open_date [09:03:32]req_shift_open_date done [09:03:32]produce_requested_data done [09:03:32]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:03:32]process_action_free print_text [09:03:32]json_value_free [09:03:32]json_value_free done [09:03:32]process_json_proto returns [09:03:32]Send response to host [09:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:03:32]free response buf [09:03:32]execute_script done [09:03:32]execute_script returns [09:03:32]free content buf [09:03:32]Sock 9.Close socket [09:03:32]Sock 9.Thread stoped [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:05]accept exits with 8 [09:06:05]New connection [09:06:05]New thread 3066654052 created [09:06:05]Thread 3066510692 joined [09:06:05]Waiting for new connection... [09:06:05] Sock 8.Parse request [09:06:05]Sock 8.Check first char [09:06:05]Sock 8.First char is OK [09:06:05]request: POST /json_proto HTTP/1.0 [09:06:05]Method: POST [09:06:05]URL: /json_proto [09:06:05]Method is POST - this is cgi request [09:06:05]url: /json_proto [09:06:05]query_string will be loaded in cgi processing [09:06:05]execute_cgi json_proto POST (null) [09:06:05]execute_cgi path=json_proto method=POST [09:06:05]POST find Content-Length [09:06:05]Host: 172.17.38.134:8080 [09:06:05]Content-Length: 1212 [09:06:05]Content-Type: application/json [09:06:05] [09:06:05]POST finish read [09:06:05]Found Content-Length = 1212 [09:06: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673162\u000A20.06.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 52.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3790.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:05]execute_script... [09:06: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673162\u000A20.06.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 52.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3790.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:05]POST & json_proto [09:06:05]process_json_proto [09:06:05]json parsed OK: [09:06:05]protocol is kg_v1.0 [09:06:05]action value=print_text [09:06:05]process_action print_text [09:06:05]cmd_print_text [09:06:05]ExternCall_PrintAddStr [09:06:05]wPrintStart [09:06:05]Write to MH i2c: 01 00 00 18 02 1A [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 FF 0F 2F [09:06:05]RasterBufferAndPrint [09:06:05]line *****ТОВАРНЫЙ ЧЕК***** [09:06:05]line АЗС 120 [09:06:05]line Партнер нефть [09:06:05]line 02508201610067 [09:06:05]line Кассир : Дуйшенбиев А. [09:06:05]line Счет N : (1)673162 [09:06:05]line 20.06.2024 08:44 [09:06:05]line ПРОДАЖА [09:06:05]line ТРК (МРК, ГНК): 11 [09:06:05]line Вид ГСМ : 2710194210 [09:06:05]line ДТ(л)-К-5 [09:06:05]line 52.000 x 72.90 [09:06:05]line ИТОГ: 3790.80 [09:06:05]line Тип оплаты: Талоны: Топливная Карта [09:06:05]line 00562 [09:06:05]line ______________________ [09:06:05]line (подпись) [09:06:05]written 0, free lines is 4095 [09:06:05]Write to MH i2c: 01 00 00 2C 02 2E [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 11 0E 54 [09:06:05]RasterBufferAndPrint [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]line [09:06:05]written 0, free lines is 3602 [09:06:05]MH_Cut [09:06:05]Write to MH i2c: D1 01 00 33 02 01 07 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 01 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: D1 01 00 33 02 00 06 [09:06:05]Write to MH i2c: 01 00 00 34 02 36 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:06]*** Cut start [09:06:06]*** Partial cut [09:06:06]*** CUTSNS_PIN = 1 [09:06:06]*** CUTSNS_PIN = 0 [09:06:06]*** Brake cut motor [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]*** Stop cut motor [09:06:06]*** Cut end [09:06:06]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [09:06:06]process_action print_text done [09:06:06]requested_data is exist [09:06:06]produce_requested_data [09:06:06]requested_item fm.sn is exist - process it [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 11 00 00 [09:06:06]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 06 [09:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:06:06]wFMCommunicate OK [09:06:06]requested_item fd.num is exist - process it [09:06:06]SAM_PROTO_GetFieldsCounters [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 13 00 00 [09:06:06]Write to MH i2c: E2 08 00 36 02 80 13 00 00 00 00 00 00 B4 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 62 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 62 00 36 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 1C [09:06: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_GetFieldsCounters done [09:06:06]requested_item shift.num is exist - process it [09:06:06]requested_item shift.opened is exist - process it [09:06:06]req_shift_opened [09:06:06]FM_GetShiftState [09:06:06]SAM_PROTO_GetShiftState [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 13 01 00 [09:06:06]Write to MH i2c: E2 08 00 37 02 80 13 01 00 00 00 00 00 B6 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0E 00 37 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CE [09:06:06]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_GetShiftState done [09:06:06]FM_GetShiftState done [09:06:06]req_shift_opened done [09:06:06]requested_item shift.open_date is exist - process it [09:06:06]req_shift_open_date [09:06:06]req_shift_open_date done [09:06:06]produce_requested_data done [09:06:06]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:06:06]process_action_free print_text [09:06:06]json_value_free [09:06:06]json_value_free done [09:06:06]process_json_proto returns [09:06:06]Send response to host [09:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:06:06]free response buf [09:06:06]execute_script done [09:06:06]execute_script returns [09:06:06]free content buf [09:06:06]Sock 8.Close socket [09:06:06]Sock 8.Thread stoped [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:48]accept exits with 9 [09:09:48]New connection [09:09:48]New thread 3066510692 created [09:09:48]Thread 3066654052 joined [09:09:48]Waiting for new connection... [09:09:48] Sock 9.Parse request [09:09:48]Sock 9.Check first char [09:09:48]Sock 9.First char is OK [09:09:48]request: POST /json_proto HTTP/1.0 [09:09:48]Method: POST [09:09:48]URL: /json_proto [09:09:48]Method is POST - this is cgi request [09:09:48]url: /json_proto [09:09:48]query_string will be loaded in cgi processing [09:09:48]execute_cgi json_proto POST (null) [09:09:48]execute_cgi path=json_proto method=POST [09:09:48]POST find Content-Length [09:09:48]Host: 172.17.38.134:8080 [09:09:48]Content-Length: 1212 [09:09:48]Content-Type: application/json [09:09:48] [09:09:48]POST finish read [09:09:48]Found Content-Length = 1212 [09:09: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673165\u000A20.06.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(\u043B)-\u041A-5\u000A 22.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1603.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:48]execute_script... [09:09: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673165\u000A20.06.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(\u043B)-\u041A-5\u000A 22.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1603.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:48]POST & json_proto [09:09:48]process_json_proto [09:09:48]json parsed OK: [09:09:48]protocol is kg_v1.0 [09:09:48]action value=print_text [09:09:48]process_action print_text [09:09:48]cmd_print_text [09:09:48]ExternCall_PrintAddStr [09:09:48]wPrintStart [09:09:48]Write to MH i2c: 01 00 00 38 02 3A [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [09:09:48]RasterBufferAndPrint [09:09:48]line *****ТОВАРНЫЙ ЧЕК***** [09:09:48]line АЗС 120 [09:09:48]line Партнер нефть [09:09:48]line 02508201610067 [09:09:48]line Кассир : Дуйшенбиев А. [09:09:48]line Счет N : (1)673165 [09:09:48]line 20.06.2024 08:48 [09:09:48]line ПРОДАЖА [09:09:48]line ТРК (МРК, ГНК): 11 [09:09:48]line Вид ГСМ : 2710194210 [09:09:48]line ДТ(л)-К-5 [09:09:48]line 22.000 x 72.90 [09:09:48]line ИТОГ: 1603.80 [09:09:48]line Тип оплаты: Талоны: Топливная Карта [09:09:48]line 00562 [09:09:48]line ______________________ [09:09:48]line (подпись) [09:09:48]written 0, free lines is 4095 [09:09:48]Write to MH i2c: 01 00 00 4C 02 4E [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 11 0E 74 [09:09:48]RasterBufferAndPrint [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]written 0, free lines is 3602 [09:09:48]MH_Cut [09:09:48]Write to MH i2c: D1 01 00 53 02 01 27 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 53 02 00 26 [09:09:48]Write to MH i2c: 01 00 00 54 02 56 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:49]*** Cut start [09:09:49]*** Partial cut [09:09:49]*** CUTSNS_PIN = 1 [09:09:49]*** CUTSNS_PIN = 0 [09:09:49]*** Brake cut motor [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]*** Stop cut motor [09:09:49]*** Cut end [09:09:49]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FF 0F 6B [09:09:49]process_action print_text done [09:09:49]requested_data is exist [09:09:49]produce_requested_data [09:09:49]requested_item fm.sn is exist - process it [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 11 00 00 [09:09:49]Write to MH i2c: E2 08 00 55 02 80 11 00 00 00 00 00 00 D1 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 55 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 26 [09:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:09:49]wFMCommunicate OK [09:09:49]requested_item fd.num is exist - process it [09:09:49]SAM_PROTO_GetFieldsCounters [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 13 00 00 [09:09:49]Write to MH i2c: E2 08 00 56 02 80 13 00 00 00 00 00 00 D4 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 56 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 3C [09:09: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5D 86 00 00 0E 04 04 00 45 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 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetFieldsCounters done [09:09:50]requested_item shift.num is exist - process it [09:09:50]requested_item shift.opened is exist - process it [09:09:50]req_shift_opened [09:09:50]FM_GetShiftState [09:09:50]SAM_PROTO_GetShiftState [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 01 00 [09:09:50]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EE [09:09:50]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]req_shift_opened done [09:09:50]requested_item shift.open_date is exist - process it [09:09:50]req_shift_open_date [09:09:50]req_shift_open_date done [09:09:50]produce_requested_data done [09:09:50]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:09:50]process_action_free print_text [09:09:50]json_value_free [09:09:50]json_value_free done [09:09:50]process_json_proto returns [09:09:50]Send response to host [09:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34397,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:09:50]free response buf [09:09:50]execute_script done [09:09:50]execute_script returns [09:09:50]free content buf [09:09:50]Sock 9.Close socket [09:09:50]Sock 9.Thread stoped [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14: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:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:41]accept exits with 8 [09:21:41]New connection [09:21:41]New thread 3066654052 created [09:21:41]Thread 3066510692 joined [09:21:41]Waiting for new connection... [09:21:41] Sock 8.Parse request [09:21:41]Sock 8.Check first char [09:21:41]Sock 8.First char is OK [09:21:41]request: POST /json_proto HTTP/1.0 [09:21:41]Method: POST [09:21:41]URL: /json_proto [09:21:41]Method is POST - this is cgi request [09:21:41]url: /json_proto [09:21:41]query_string will be loaded in cgi processing [09:21:41]execute_cgi json_proto POST (null) [09:21:41]execute_cgi path=json_proto method=POST [09:21:41]POST find Content-Length [09:21:41]Host: 172.17.38.134:8080 [09:21:41]Content-Length: 620 [09:21:41]Content-Type: application/json [09:21:41] [09:21:41]POST finish read [09:21:41]Found Content-Length = 620 [09:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184171", "tax_sys" : 0, "items" : [ { "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:41]execute_script... [09:21: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 : (3)184171", "tax_sys" : 0, "items" : [ { "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:41]POST & json_proto [09:21:41]process_json_proto [09:21:41]json parsed OK: [09:21:41]protocol is kg_v1.0 [09:21:41]action value=close_receipt [09:21:41]process_action close_receipt [09:21:41]cmd_close_receipt [09:21:41]MH_GetDate [09:21:41]Write to MH i2c: F0 00 00 58 02 49 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 09 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: F0 09 00 58 02 00 A7 F4 73 66 13 9C 7C 64 55 [09:21:41]GetLastDocTimeStamp 1718873680 [09:21:41]current date 1718875303 [09:21:41]FM_GetShiftState [09:21:41]SAM_PROTO_GetShiftState [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 13 01 00 [09:21:41]Write to MH i2c: E2 08 00 59 02 80 13 01 00 00 00 00 00 D8 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 59 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F0 [09:21:42]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetShiftState done [09:21:42]FM_GetShiftState done [09:21:42]opened in 1718843069 [09:21:42]opened+sec_in_day 1718929469 [09:21:42]quantity*price = 18000 [09:21:42]sum+1 = 18001 [09:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 20.06.2024 09:21 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34398 ФПД: 28165730151647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092143&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34398&fm=28165730151647&tin=02508201610067®Number=0000000000092786&sum=18000 0 [09:21:43]StoreToDocumentArchive [09:21:43]shift 325 fd 34398 [09:21:43]save to /storage/0325/doc_00034398 [09:21:43]save last doc name /storage/0325/doc_00034398 to /storage/kkm_last_doc_name [09:21:43]save OK [09:21:43]Clear old archive folders... [09:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:21:43]tlvbuf is 001EBF40 [09:21:43]SAM_PROTO_ClearQueue [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 09 00 00 [09:21:43]Write to MH i2c: E2 08 00 66 02 80 09 00 00 00 00 00 00 DA [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_ClearQueue done [09:21:43]KKMCreateOFDPacket [09:21:43]OFDProtocolAddRootSTLVToBuf [09:21:43]FM_MakeSignedData [09:21:43]FM_MakeSignedData [09:21:43]SAM_PROTO_SignData [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 01 02 [09:21:43]Write to MH i2c: E2 08 00 67 02 80 0D 01 02 00 00 00 00 E2 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=255 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A7 F4 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [09:21:43]Write to MH i2c: E2 02 01 68 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A7 F4 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 94 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=32 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 5E 86 00 00 35 04 06 00 19 9D D8 57 2C DF [09:21:43]Write to MH i2c: E2 23 00 69 02 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 5E 86 00 00 35 04 06 00 19 9D D8 57 2C DF 00 00 18 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [09:21:43]RAPDU: 90 00 [09:21:43]wFMCommunicate OK [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 0D 03 02 [09:21:43]Write to MH i2c: E2 08 00 6A 02 80 0D 03 02 00 00 00 00 E7 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0B 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0B 00 6A 02 00 85 1B C1 65 43 59 31 60 90 00 DB [09:21:43]RAPDU: 85 1B C1 65 43 59 31 60 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_SignData done [09:21:43]FM_MakeSignedData done [09:21:43]CreateOFDProtocolMessage [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 11 00 00 [09:21:43]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3C [09:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:21:43]wFMCommunicate OK [09:21:43]CreateOFDProtocolMessage done [09:21:43]OFDSenderStorePacket 34398 [09:21:43]StoreOFDPacket docnum=34398 [09:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 FE 44 1D 01 46 38 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A7 F4 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5E 86 00 00 35 04 06 00 19 9D D8 57 2C DF 85 1B C1 65 43 59 31 60 [09:21:43]CheckFolder [09:21:43]dirname=/storage/ofd_packets [09:21:43]CheckFolder done [09:21:43]ProducePacketName [09:21:43]name=ofd_packets/00034398 [09:21:43]NVStorageSaveData ofd_packets/00034398 [09:21:43]File name is /storage/ofd_packets/00034398 [09:21:43]Write 323 bytes [09:21:43]NVStorageSaveData done [09:21:43]OFDSenderStorePacket done [09:21:43]KKMCreateOFDPacket done [09:21:43]NVStorageSaveData kkm_last_timestamp [09:21:43]File name is /storage/kkm_last_timestamp [09:21:43]Write 4 bytes [09:21:43]NVStorageSaveData done [09:21:43]ExternCall_PrintAddStr [09:21:43]wPrintStart [09:21:43]Write to MH i2c: 01 00 00 6C 02 6E [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [09:21:43]RasterBufferAndPrint [09:21:43]line Счет N : (3)184171 [09:21:43]line ИНН: 02508201610067 [09:21:43]line Контрольно-Кассовый Чек [09:21:43]line ПРОДАЖА [09:21:43]line Товар: 40052403 [09:21:43]line Nestle KIT-KAT плоский 41,5г [09:21:43]line 2.000 * 90.00 [09:21:43]line = 180.00 [09:21:43]line НДС 12% НСП 1% [09:21:43]line > о реализуемом товаре [09:21:43]line ИТОГО: 180.00 [09:21:43]line НСП 1% : 1.59 [09:21:43]line НДС 12% : 19.11 [09:21:43]line Наличными: 180.00 [09:21:43]line Безнал.: 0.00 [09:21:43]line Место: АЗС № 120 "Партнер Нефть" [09:21:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:21:43]line СНО: Общий режим [09:21:43]line Чек 8 20.06.2024 09:21 [09:21:43]line Смена: 325 ФФД: 1.0 [09:21:43]line ЗНМ: 0300000172 [09:21:43]line РНМ: 0000000000092786 [09:21:43]line Версия ККМ: 001 [09:21:43]line ФМ: 0000000000875095 [09:21:43]line ФД: 34398 [09:21:43]line ФПД: 28165730151647 [09:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092143&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34398&fm=28165730151647&tin=02508201610067®Number=0000000000092786&sum=18000 [09:21:44]line 0 [09:21:44]OFD Sender: Processing packet 34398 [packets to send 8, broken 7] [09:21:44]ProducePacketName [09:21:44]name=ofd_packets/00034398 [09:21:44]OFD Sender: To server: pG, [09:21:44]CommunicateWithHost lk.salyk.kg:30040 [09:21:44]ConnectInit lk.salyk.kg [09:21:44]written 0, free lines is 4095 [09:21:44]Connected sock=10 [09:21:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 FE 44 1D 01 46 38 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A7 F4 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5E 86 00 00 35 04 06 00 19 9D D8 57 2C DF 85 1B C1 65 43 59 31 60 [09:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 68 F8 47 00 84 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 35 30 39 35 10 04 04 00 5E 86 00 00 F4 03 04 00 71 9B 73 66 B6 04 01 00 00 B5 CB 82 C4 E3 84 2F 13 [09:21:44]CommunicateWithHost err = 0 [09:21:44]CheckOFDResponse [09:21:44]1017 (14) - 77093643461234 [09:21:44]1041 (16) - 0000000000875095 [09:21:44]1040 (4) - 34398 [09:21:44]1012 (4) - 20.06.2024 03:01 [09:21:44]1206 (1) - 0 [09:21:44]OFD Sender: Remove packet 34398 [09:21:44]ProducePacketName [09:21:44]name=ofd_packets/00034398 [09:21:44]NVStorageDeleteData [09:21:44]Write to MH i2c: 01 00 00 94 02 96 [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 07 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 E9 0C 92 [09:21:44]RasterBufferAndPrint [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]line [09:21:44]written 0, free lines is 3314 [09:21:44]MH_Cut [09:21:44]Write to MH i2c: D1 01 00 9B 02 01 6F [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 01 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: D1 01 00 9B 02 00 6E [09:21:44]Write to MH i2c: 01 00 00 9C 02 9E [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]OFD Sender: No OFD packet to send [09:21:45]*** Cut start [09:21:45]*** Partial cut [09:21:45]*** CUTSNS_PIN = 1 [09:21:45]*** CUTSNS_PIN = 0 [09:21:45]*** Brake cut motor [09:21:45]Read from MH i2c: 01 [09:21:45]MH_I2C_Read... [09:21:45]*** Stop cut motor [09:21:45]*** Cut end [09:21:45]Read from MH i2c: 01 07 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [09:21:45]process_action close_receipt done [09:21:45]requested_data is exist [09:21:45]produce_requested_data [09:21:45]requested_item fm.sn is exist - process it [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 11 00 00 [09:21:45]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6E [09:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:21:45]wFMCommunicate OK [09:21:45]requested_item fd.num is exist - process it [09:21:45]SAM_PROTO_GetFieldsCounters [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 13 00 00 [09:21:45]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 9E 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5E 86 00 00 0E 04 04 00 45 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 88 [09:21: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5E 86 00 00 0E 04 04 00 45 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 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetFieldsCounters done [09:21:46]requested_item shift.num is exist - process it [09:21:46]requested_item shift.opened is exist - process it [09:21:46]req_shift_opened [09:21:46]FM_GetShiftState [09:21:46]SAM_PROTO_GetShiftState [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 13 01 00 [09:21:46]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 36 [09:21:46]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetShiftState done [09:21:46]FM_GetShiftState done [09:21:46]req_shift_opened done [09:21:46]requested_item shift.open_date is exist - process it [09:21:46]req_shift_open_date [09:21:46]req_shift_open_date done [09:21:46]produce_requested_data done [09:21:46]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34398,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:21:46]process_action_free close_receipt [09:21:46]json_value_free [09:21:46]json_value_free done [09:21:46]process_json_proto returns [09:21:46]Send response to host [09:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34398,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:21:46]free response buf [09:21:46]execute_script done [09:21:46]execute_script returns [09:21:46]free content buf [09:21:46]Sock 8.Close socket [09:21:46]Sock 8.Thread stoped [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:39:57]accept exits with 9 [09:39:57]New connection [09:39:57]New thread 3066510692 created [09:39:57]Thread 3066654052 joined [09:39:57]Waiting for new connection... [09:39:57] Sock 9.Parse request [09:39:57]Sock 9.Check first char [09:39:57]Sock 9.First char is OK [09:39:57]request: POST /json_proto HTTP/1.0 [09:39:57]Method: POST [09:39:57]URL: /json_proto [09:39:57]Method is POST - this is cgi request [09:39:57]url: /json_proto [09:39:57]query_string will be loaded in cgi processing [09:39:57]execute_cgi json_proto POST (null) [09:39:57]execute_cgi path=json_proto method=POST [09:39:57]POST find Content-Length [09:39:57]Host: 172.17.38.134:8080 [09:39:57]Content-Length: 623 [09:39:57]Content-Type: application/json [09:39:57] [09:39:57]POST finish read [09:39:57]Found Content-Length = 623 [09:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184172", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [09:39:57]execute_script... [09:39: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 : (3)184172", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.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" ] } } [09:39:57]POST & json_proto [09:39:57]process_json_proto [09:39:57]json parsed OK: [09:39:57]protocol is kg_v1.0 [09:39:57]action value=close_receipt [09:39:57]process_action close_receipt [09:39:57]cmd_close_receipt [09:39:57]MH_GetDate [09:39:57]Write to MH i2c: F0 00 00 A0 02 91 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 09 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 09 00 A0 02 00 EE F8 73 66 13 9C 7C 64 E8 [09:39:57]GetLastDocTimeStamp 1718875303 [09:39:57]current date 1718876398 [09:39:57]FM_GetShiftState [09:39:57]SAM_PROTO_GetShiftState [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 01 00 [09:39:57]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 38 [09:39:57]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetShiftState done [09:39:57]FM_GetShiftState done [09:39:57]opened in 1718843069 [09:39:57]opened+sec_in_day 1718929469 [09:39:57]quantity*price = 14000 [09:39:57]sum+1 = 14001 [09:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 20.06.2024 09:39 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34399 ФПД: 117371652528130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093959&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34399&fm=117371652528130&tin=02508201610067®Number=0000000000092786&sum=14000 0 [09:39:58]StoreToDocumentArchive [09:39:58]shift 325 fd 34399 [09:39:58]save to /storage/0325/doc_00034399 [09:39:58]save last doc name /storage/0325/doc_00034399 to /storage/kkm_last_doc_name [09:39:58]save OK [09:39:58]Clear old archive folders... [09:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:39:59]tlvbuf is 00206B40 [09:39:59]SAM_PROTO_ClearQueue [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 09 00 00 [09:39:59]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_ClearQueue done [09:39:59]KKMCreateOFDPacket [09:39:59]OFDProtocolAddRootSTLVToBuf [09:39:59]FM_MakeSignedData [09:39:59]FM_MakeSignedData [09:39:59]SAM_PROTO_SignData [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 0D 01 02 [09:39:59]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=255 [09:39:59]MH_SAM_APDU [09:39:59]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 B0 36 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 09 00 00 00 F4 03 04 00 EF F8 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 [09:39:59]Write to MH i2c: E2 02 01 B0 02 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 B0 36 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 09 00 00 00 F4 03 04 00 EF F8 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 00 00 D0 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=34 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5F 86 00 00 35 04 06 00 6A BF B7 A7 D8 02 [09:39:59]Write to MH i2c: E2 25 00 B1 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5F 86 00 00 35 04 06 00 6A BF B7 A7 D8 02 00 00 36 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 0D 03 02 [09:39:59]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 0B 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 0B 00 B2 02 00 8B C1 88 91 09 86 89 AF 90 00 5C [09:39:59]RAPDU: 8B C1 88 91 09 86 89 AF 90 00 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_SignData done [09:39:59]FM_MakeSignedData done [09:39:59]CreateOFDProtocolMessage [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 11 00 00 [09:39:59]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 17 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 84 [09:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:39:59]wFMCommunicate OK [09:39:59]CreateOFDProtocolMessage done [09:39:59]OFDSenderStorePacket 34399 [09:39:59]StoreOFDPacket docnum=34399 [09:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 C7 94 1F 01 3A 89 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 B0 36 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 09 00 00 00 F4 03 04 00 EF F8 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5F 86 00 00 35 04 06 00 6A BF B7 A7 D8 02 8B C1 88 91 09 86 89 AF [09:39:59]CheckFolder [09:39:59]dirname=/storage/ofd_packets [09:39:59]CheckFolder done [09:39:59]ProducePacketName [09:39:59]name=ofd_packets/00034399 [09:39:59]NVStorageSaveData ofd_packets/00034399 [09:39:59]File name is /storage/ofd_packets/00034399 [09:39:59]Write 325 bytes [09:39:59]NVStorageSaveData done [09:39:59]OFDSenderStorePacket done [09:39:59]KKMCreateOFDPacket done [09:39:59]NVStorageSaveData kkm_last_timestamp [09:39:59]File name is /storage/kkm_last_timestamp [09:39:59]Write 4 bytes [09:39:59]NVStorageSaveData done [09:39:59]ExternCall_PrintAddStr [09:39:59]wPrintStart [09:39:59]Write to MH i2c: 01 00 00 B4 02 B6 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [09:39:59]RasterBufferAndPrint [09:39:59]line Счет N : (3)184172 [09:39:59]line ИНН: 02508201610067 [09:39:59]line Контрольно-Кассовый Чек [09:39:59]line ПРОДАЖА [09:39:59]line Товар: 48743587 [09:39:59]line Сигареты Winston XStyle Silver [09:39:59]line 1.000 * 140.00 [09:39:59]line = 140.00 [09:39:59]line НДС 12% НСП 1% [09:39:59]line > о реализуемом товаре [09:39:59]line ИТОГО: 140.00 [09:39:59]line НСП 1% : 1.24 [09:39:59]line НДС 12% : 14.87 [09:39:59]line Наличными: 140.00 [09:39:59]line Безнал.: 0.00 [09:39:59]line Место: АЗС № 120 "Партнер Нефть" [09:39:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:39:59]line СНО: Общий режим [09:39:59]line Чек 9 20.06.2024 09:39 [09:39:59]line Смена: 325 ФФД: 1.0 [09:39:59]line ЗНМ: 0300000172 [09:39:59]line РНМ: 0000000000092786 [09:39:59]line Версия ККМ: 001 [09:39:59]line ФМ: 0000000000875095 [09:39:59]line ФД: 34399 [09:39:59]line ФПД: 117371652528130 [09:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093959&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34399&fm=117371652528130&tin=02508201610067®Number=0000000000092786&sum=14000 [09:39:59]line 0 [09:39:59]OFD Sender: Processing packet 34399 [packets to send 8, broken 7] [09:39:59]ProducePacketName [09:39:59]name=ofd_packets/00034399 [09:39:59]OFD Sender: To server: pG, [09:39:59]CommunicateWithHost lk.salyk.kg:30040 [09:39:59]ConnectInit lk.salyk.kg [09:39:59]written 0, free lines is 4095 [09:40:00]Connected sock=8 [09:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 C7 94 1F 01 3A 89 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 B0 36 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 09 00 00 00 F4 03 04 00 EF F8 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 5F 86 00 00 35 04 06 00 6A BF B7 A7 D8 02 8B C1 88 91 09 86 89 AF [09:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 5A C3 47 00 F2 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 35 30 39 35 10 04 04 00 5F 86 00 00 F4 03 04 00 B9 9F 73 66 B6 04 01 00 00 BC 2B 7A 4C 2A 24 18 B1 [09:40:00]CommunicateWithHost err = 0 [09:40:00]CheckOFDResponse [09:40:00]1017 (14) - 77093643461234 [09:40:00]1041 (16) - 0000000000875095 [09:40:00]1040 (4) - 34399 [09:40:00]1012 (4) - 20.06.2024 03:19 [09:40:00]1206 (1) - 0 [09:40:00]OFD Sender: Remove packet 34399 [09:40:00]ProducePacketName [09:40:00]name=ofd_packets/00034399 [09:40:00]NVStorageDeleteData [09:40:00]Write to MH i2c: 01 00 00 DD 02 DF [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 E3 0C D5 [09:40:00]RasterBufferAndPrint [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]written 0, free lines is 3308 [09:40:00]MH_Cut [09:40:00]Write to MH i2c: D1 01 00 E4 02 01 B8 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 01 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 01 00 E4 02 00 B7 [09:40:00]Write to MH i2c: 01 00 00 E5 02 E7 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]OFD Sender: No OFD packet to send [09:40:01]*** Cut start [09:40:01]*** Partial cut [09:40:01]*** CUTSNS_PIN = 1 [09:40:01]*** CUTSNS_PIN = 0 [09:40:01]*** Brake cut motor [09:40:01]Read from MH i2c: 01 [09:40:01]MH_I2C_Read... [09:40:01]*** Stop cut motor [09:40:01]*** Cut end [09:40:01]Read from MH i2c: 01 07 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [09:40:01]process_action close_receipt done [09:40:01]requested_data is exist [09:40:01]produce_requested_data [09:40:01]requested_item fm.sn is exist - process it [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 11 00 00 [09:40:01]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 17 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B7 [09:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:40:01]wFMCommunicate OK [09:40:01]requested_item fd.num is exist - process it [09:40:01]SAM_PROTO_GetFieldsCounters [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 00 00 [09:40:01]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 E7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5F 86 00 00 0E 04 04 00 45 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 D5 [09: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 5F 86 00 00 0E 04 04 00 45 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 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetFieldsCounters done [09:40:01]requested_item shift.num is exist - process it [09:40:01]requested_item shift.opened is exist - process it [09:40:01]req_shift_opened [09:40:01]FM_GetShiftState [09:40:01]SAM_PROTO_GetShiftState [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 01 00 [09:40:01]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:01]Read from MH i2c: E2 0E 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7F [09:40:01]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetShiftState done [09:40:01]FM_GetShiftState done [09:40:01]req_shift_opened done [09:40:01]requested_item shift.open_date is exist - process it [09:40:01]req_shift_open_date [09:40:01]req_shift_open_date done [09:40:01]produce_requested_data done [09:40:01]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34399,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:40:01]process_action_free close_receipt [09:40:01]json_value_free [09:40:01]json_value_free done [09:40:01]process_json_proto returns [09:40:01]Send response to host [09:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34399,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:40:01]free response buf [09:40:01]execute_script done [09:40:01]execute_script returns [09:40:01]free content buf [09:40:01]Sock 9.Close socket [09:40:01]Sock 9.Thread stoped [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:08]accept exits with 10 [09:42:08]New connection [09:42:08]New thread 3066654052 created [09:42:08]Thread 3066510692 joined [09:42:08]Waiting for new connection... [09:42:08] Sock 10.Parse request [09:42:08]Sock 10.Check first char [09:42:08]Sock 10.First char is OK [09:42:08]request: POST /json_proto HTTP/1.0 [09:42:08]Method: POST [09:42:08]URL: /json_proto [09:42:08]Method is POST - this is cgi request [09:42:08]url: /json_proto [09:42:08]query_string will be loaded in cgi processing [09:42:08]execute_cgi json_proto POST (null) [09:42:08]execute_cgi path=json_proto method=POST [09:42:08]POST find Content-Length [09:42:08]Host: 172.17.38.134:8080 [09:42:08]Content-Length: 720 [09:42:08]Content-Type: application/json [09:42:08] [09:42:08]POST finish read [09:42:08]Found Content-Length = 720 [09:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184173", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 3.000, "sum" : 15000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:08]execute_script... [09:42:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184173", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 3.000, "sum" : 15000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:08]POST & json_proto [09:42:08]process_json_proto [09:42:08]json parsed OK: [09:42:08]protocol is kg_v1.0 [09:42:08]action value=close_receipt [09:42:08]process_action close_receipt [09:42:08]cmd_close_receipt [09:42:08]MH_GetDate [09:42:08]Write to MH i2c: F0 00 00 E9 02 DA [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 09 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: F0 09 00 E9 02 00 72 F9 73 66 13 9C 7C 64 B6 [09:42:08]GetLastDocTimeStamp 1718876399 [09:42:08]current date 1718876530 [09:42:08]FM_GetShiftState [09:42:08]SAM_PROTO_GetShiftState [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 13 01 00 [09:42:08]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 81 [09:42:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:42:08]wFMCommunicate OK [09:42:08]SAM_PROTO_GetShiftState done [09:42:08]FM_GetShiftState done [09:42:08]opened in 1718843069 [09:42:08]opened+sec_in_day 1718929469 [09:42:08]quantity*price = 1500000 [09:42:08]sum+1 = 1500001 [09:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15000.00 НСП 1% : 132.74 НДС 12% : 1592.92 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 20.06.2024 09:42 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34400 ФПД: 89946550417694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094210&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34400&fm=89946550417694&tin=02508201610067®Number=0000000000092786&sum=1500000 0 [09:42:10]StoreToDocumentArchive [09:42:10]shift 325 fd 34400 [09:42:10]save to /storage/0325/doc_00034400 [09:42:10]save last doc name /storage/0325/doc_00034400 to /storage/kkm_last_doc_name [09:42:10]save OK [09:42:10]Clear old archive folders... [09:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:42:10]tlvbuf is 001ED6B0 [09:42:10]SAM_PROTO_ClearQueue [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 09 00 00 [09:42:10]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]SAM_PROTO_ClearQueue done [09:42:10]KKMCreateOFDPacket [09:42:10]OFDProtocolAddRootSTLVToBuf [09:42:10]FM_MakeSignedData [09:42:10]FM_MakeSignedData [09:42:10]SAM_PROTO_SignData [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 01 02 [09:42:10]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]wFMCommunicate request_size=255 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 60 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 6E 02 00 00 00 07 04 06 00 60 E3 16 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 72 F9 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:42:10]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 60 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 6E 02 00 00 00 07 04 06 00 60 E3 16 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 72 F9 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 6B [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]wFMCommunicate request_size=58 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 60 86 00 00 35 04 06 00 51 CE 50 2F B9 1E [09:42:10]Write to MH i2c: E2 3D 00 FA 02 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 60 86 00 00 35 04 06 00 51 CE 50 2F B9 1E 00 00 C9 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [09:42:10]RAPDU: 90 00 [09:42:10]wFMCommunicate OK [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 0D 03 02 [09:42:10]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 0B 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 0B 00 FB 02 00 20 F3 3E CF F0 A3 10 73 90 00 AF [09:42:10]RAPDU: 20 F3 3E CF F0 A3 10 73 90 00 [09:42:10]wFMCommunicate OK [09:42:10]SAM_PROTO_SignData done [09:42:10]FM_MakeSignedData done [09:42:10]CreateOFDProtocolMessage [09:42:10]wFMCommunicate request_size=4 [09:42:10]MH_SAM_APDU [09:42:10]CAPDU: 80 11 00 00 [09:42:10]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:10]Read from MH i2c: E2 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 17 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CD [09:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:42:10]wFMCommunicate OK [09:42:10]CreateOFDProtocolMessage done [09:42:10]OFDSenderStorePacket 34400 [09:42:10]StoreOFDPacket docnum=34400 [09:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 4F 25 37 01 5F AB 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 60 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 6E 02 00 00 00 07 04 06 00 60 E3 16 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 72 F9 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 60 86 00 00 35 04 06 00 51 CE 50 2F B9 1E 20 F3 3E CF F0 A3 10 73 [09:42:10]CheckFolder [09:42:10]dirname=/storage/ofd_packets [09:42:10]CheckFolder done [09:42:10]ProducePacketName [09:42:10]name=ofd_packets/00034400 [09:42:10]NVStorageSaveData ofd_packets/00034400 [09:42:10]File name is /storage/ofd_packets/00034400 [09:42:10]Write 349 bytes [09:42:10]NVStorageSaveData done [09:42:10]OFDSenderStorePacket done [09:42:10]KKMCreateOFDPacket done [09:42:10]NVStorageSaveData kkm_last_timestamp [09:42:10]File name is /storage/kkm_last_timestamp [09:42:10]Write 4 bytes [09:42:10]NVStorageSaveData done [09:42:10]ExternCall_PrintAddStr [09:42:10]wPrintStart [09:42:10]Write to MH i2c: 01 00 00 FD 02 FF [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [09:42:10]RasterBufferAndPrint [09:42:10]line Счет N : (3)184173 [09:42:10]line ИНН: 02508201610067 [09:42:10]line Контрольно-Кассовый Чек [09:42:10]line ПРОДАЖА [09:42:10]line Товар: 9780225379418 [09:42:10]line Подарочная топливная карта 5000с [09:42:10]line 3.000 * 5000.00 [09:42:10]line = 15000.00 [09:42:10]line НДС 12% НСП 1% [09:42:10]line > о реализуемом товаре [09:42:10]line ИТОГО: 15000.00 [09:42:10]line НСП 1% : 132.74 [09:42:10]line НДС 12% : 1592.92 [09:42:10]line Наличными: 15000.00 [09:42:10]line Безнал.: 0.00 [09:42:10]line Место: АЗС № 120 "Партнер Нефть" [09:42:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:42:10]line СНО: Общий режим [09:42:10]line Чек 10 20.06.2024 09:42 [09:42:10]line Смена: 325 ФФД: 1.0 [09:42:10]line ЗНМ: 0300000172 [09:42:10]line РНМ: 0000000000092786 [09:42:10]line Версия ККМ: 001 [09:42:10]line ФМ: 0000000000875095 [09:42:10]line ФД: 34400 [09:42:10]line ФПД: 89946550417694 [09:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094210&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34400&fm=89946550417694&tin=02508201610067®Number=0000000000092786&sum=1500000 [09:42:10]line 0 [09:42:10]OFD Sender: Processing packet 34400 [packets to send 8, broken 7] [09:42:10]ProducePacketName [09:42:10]name=ofd_packets/00034400 [09:42:10]OFD Sender: To server: pG, [09:42:10]CommunicateWithHost lk.salyk.kg:30040 [09:42:10]ConnectInit lk.salyk.kg [09:42:10]written 0, free lines is 4095 [09:42:11]Connected sock=9 [09:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 4F 25 37 01 5F AB 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 60 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 6E 02 00 00 00 07 04 06 00 60 E3 16 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 72 F9 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 60 86 00 00 35 04 06 00 51 CE 50 2F B9 1E 20 F3 3E CF F0 A3 10 73 [09:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 14 BE 47 00 42 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 60 86 00 00 F4 03 04 00 3C A0 73 66 B6 04 01 00 00 C1 BD 3E 6D 0D AB FC 0A [09:42:11]CommunicateWithHost err = 0 [09:42:11]CheckOFDResponse [09:42:11]1017 (14) - 77093643461234 [09:42:11]1041 (16) - 0000000000875095 [09:42:11]1040 (4) - 34400 [09:42:11]1012 (4) - 20.06.2024 03:21 [09:42:11]1206 (1) - 0 [09:42:11]OFD Sender: Remove packet 34400 [09:42:11]ProducePacketName [09:42:11]name=ofd_packets/00034400 [09:42:11]NVStorageDeleteData [09:42:11]Write to MH i2c: 01 00 00 26 03 29 [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: 01 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: 01 07 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 E5 0C 21 [09:42:11]RasterBufferAndPrint [09:42:11]line [09:42:11]line [09:42:11]line [09:42:11]line [09:42:11]line [09:42:11]written 0, free lines is 3307 [09:42:11]MH_Cut [09:42:11]Write to MH i2c: D1 01 00 2D 03 01 02 [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: D1 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: D1 01 00 [09:42:11]MH_I2C_Read... [09:42:11]Read from MH i2c: D1 01 00 2D 03 00 01 [09:42:11]Write to MH i2c: 01 00 00 2E 03 31 [09:42:11]Write i2c OK [09:42:11]MH_I2C_Read... [09:42:11]OFD Sender: No OFD packet to send [09:42:12]*** Cut start [09:42:12]*** Partial cut [09:42:12]*** CUTSNS_PIN = 1 [09:42:12]*** CUTSNS_PIN = 0 [09:42:12]*** Brake cut motor [09:42:12]Read from MH i2c: 01 [09:42:12]MH_I2C_Read... [09:42:12]*** Stop cut motor [09:42:12]*** Cut end [09:42:12]Read from MH i2c: 01 07 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [09:42:12]process_action close_receipt done [09:42:12]requested_data is exist [09:42:12]produce_requested_data [09:42:12]requested_item fm.sn is exist - process it [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 11 00 00 [09:42:12]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 17 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 01 [09:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:42:12]wFMCommunicate OK [09:42:12]requested_item fd.num is exist - process it [09:42:12]SAM_PROTO_GetFieldsCounters [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 00 00 [09:42:12]Write to MH i2c: E2 08 00 30 03 80 13 00 00 00 00 00 00 AF [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:12]Read from MH i2c: E2 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 62 00 [09:42:12]MH_I2C_Read... [09:42:12]Read from MH i2c: E2 62 00 30 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 60 86 00 00 0E 04 04 00 45 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 23 [09:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 60 86 00 00 0E 04 04 00 45 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 [09:42:12]wFMCommunicate OK [09:42:12]SAM_PROTO_GetFieldsCounters done [09:42:12]requested_item shift.num is exist - process it [09:42:12]requested_item shift.opened is exist - process it [09:42:12]req_shift_opened [09:42:12]FM_GetShiftState [09:42:12]SAM_PROTO_GetShiftState [09:42:12]wFMCommunicate request_size=4 [09:42:12]MH_SAM_APDU [09:42:12]CAPDU: 80 13 01 00 [09:42:12]Write to MH i2c: E2 08 00 31 03 80 13 01 00 00 00 00 00 B1 [09:42:12]Write i2c OK [09:42:12]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 31 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C9 [09:42:13]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetShiftState done [09:42:13]FM_GetShiftState done [09:42:13]req_shift_opened done [09:42:13]requested_item shift.open_date is exist - process it [09:42:13]req_shift_open_date [09:42:13]req_shift_open_date done [09:42:13]produce_requested_data done [09:42:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34400,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:42:13]process_action_free close_receipt [09:42:13]json_value_free [09:42:13]json_value_free done [09:42:13]process_json_proto returns [09:42:13]Send response to host [09:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34400,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:42:13]free response buf [09:42:13]execute_script done [09:42:13]execute_script returns [09:42:13]free content buf [09:42:13]Sock 10.Close socket [09:42:13]Sock 10.Thread stoped [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:36]OFD Sender: No OFD packet to send [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:43]accept exits with 8 [09:44:43]New connection [09:44:43]New thread 3066510692 created [09:44:43]Thread 3066654052 joined [09:44:43]Waiting for new connection... [09:44:43] Sock 8.Parse request [09:44:43]Sock 8.Check first char [09:44:43]Sock 8.First char is OK [09:44:43]request: POST /json_proto HTTP/1.0 [09:44:43]Method: POST [09:44:43]URL: /json_proto [09:44:43]Method is POST - this is cgi request [09:44:43]url: /json_proto [09:44:43]query_string will be loaded in cgi processing [09:44:43]execute_cgi json_proto POST (null) [09:44:43]execute_cgi path=json_proto method=POST [09:44:43]POST find Content-Length [09:44:43]Host: 172.17.38.134:8080 [09:44:43]Content-Length: 1212 [09:44:43]Content-Type: application/json [09:44:43] [09:44:43]POST finish read [09:44:43]Found Content-Length = 1212 [09:44: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673178\u000A20.06.2024 09:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.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\u000A76496\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:43]execute_script... [09:44: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673178\u000A20.06.2024 09:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.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\u000A76496\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:43]POST & json_proto [09:44:43]process_json_proto [09:44:43]json parsed OK: [09:44:43]protocol is kg_v1.0 [09:44:43]action value=print_text [09:44:43]process_action print_text [09:44:43]cmd_print_text [09:44:43]ExternCall_PrintAddStr [09:44:43]wPrintStart [09:44:43]Write to MH i2c: 01 00 00 32 03 35 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [09:44:43]RasterBufferAndPrint [09:44:43]line *****ТОВАРНЫЙ ЧЕК***** [09:44:43]line АЗС 120 [09:44:43]line Партнер нефть [09:44:43]line 02508201610067 [09:44:43]line Кассир : Дуйшенбиев А. [09:44:43]line Счет N : (1)673178 [09:44:43]line 20.06.2024 09:23 [09:44:43]line ПРОДАЖА [09:44:43]line ТРК (МРК, ГНК): 11 [09:44:43]line Вид ГСМ : 2710194210 [09:44:43]line ДТ(л)-К-5 [09:44:43]line 68.590 x 72.90 [09:44:43]line ИТОГ: 5000.21 [09:44:43]line Тип оплаты: Талоны: Топливная Карта [09:44:43]line 76496 [09:44:43]line ______________________ [09:44:43]line (подпись) [09:44:43]written 0, free lines is 4095 [09:44:43]Write to MH i2c: 01 00 00 46 03 49 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 13 0E 71 [09:44:43]RasterBufferAndPrint [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]line [09:44:43]written 0, free lines is 3604 [09:44:43]MH_Cut [09:44:43]Write to MH i2c: D1 01 00 4D 03 01 22 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 01 00 [09:44:43]MH_I2C_Read... [09:44:43]Read from MH i2c: D1 01 00 4D 03 00 21 [09:44:43]Write to MH i2c: 01 00 00 4E 03 51 [09:44:43]Write i2c OK [09:44:43]MH_I2C_Read... [09:44:44]*** Cut start [09:44:44]*** Partial cut [09:44:44]*** CUTSNS_PIN = 1 [09:44:44]*** CUTSNS_PIN = 0 [09:44:44]*** Brake cut motor [09:44:44]Read from MH i2c: 01 [09:44:44]MH_I2C_Read... [09:44:44]*** Stop cut motor [09:44:44]*** Cut end [09:44:44]Read from MH i2c: 01 07 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [09:44:44]process_action print_text done [09:44:44]requested_data is exist [09:44:44]produce_requested_data [09:44:44]requested_item fm.sn is exist - process it [09:44:44]wFMCommunicate request_size=4 [09:44:44]MH_SAM_APDU [09:44:44]CAPDU: 80 11 00 00 [09:44:44]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:44]Read from MH i2c: E2 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 17 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 21 [09:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:44:44]wFMCommunicate OK [09:44:44]requested_item fd.num is exist - process it [09:44:44]SAM_PROTO_GetFieldsCounters [09:44:44]wFMCommunicate request_size=4 [09:44:44]MH_SAM_APDU [09:44:44]CAPDU: 80 13 00 00 [09:44:44]Write to MH i2c: E2 08 00 50 03 80 13 00 00 00 00 00 00 CF [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:44]Read from MH i2c: E2 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 62 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 62 00 50 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 60 86 00 00 0E 04 04 00 45 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 43 [09:44: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 60 86 00 00 0E 04 04 00 45 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 [09:44:44]wFMCommunicate OK [09:44:44]SAM_PROTO_GetFieldsCounters done [09:44:44]requested_item shift.num is exist - process it [09:44:44]requested_item shift.opened is exist - process it [09:44:44]req_shift_opened [09:44:44]FM_GetShiftState [09:44:44]SAM_PROTO_GetShiftState [09:44:44]wFMCommunicate request_size=4 [09:44:44]MH_SAM_APDU [09:44:44]CAPDU: 80 13 01 00 [09:44:44]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E9 [09:44:45]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_GetShiftState done [09:44:45]FM_GetShiftState done [09:44:45]req_shift_opened done [09:44:45]requested_item shift.open_date is exist - process it [09:44:45]req_shift_open_date [09:44:45]req_shift_open_date done [09:44:45]produce_requested_data done [09:44:45]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34400,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:44:45]process_action_free print_text [09:44:45]json_value_free [09:44:45]json_value_free done [09:44:45]process_json_proto returns [09:44:45]Send response to host [09:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34400,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:44:45]free response buf [09:44:45]execute_script done [09:44:45]execute_script returns [09:44:45]free content buf [09:44:45]Sock 8.Close socket [09:44:45]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [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: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:17]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [09:56:52]New connection [09:56:52]New thread 3066654052 created [09:56:52]Thread 3066510692 joined [09:56:52]Waiting for new connection... [09:56:52] Sock 9.Parse request [09:56:52]Sock 9.Check first char [09:56:52]Sock 9.First char is OK [09:56:52]request: POST /json_proto HTTP/1.0 [09:56:52]Method: POST [09:56:52]URL: /json_proto [09:56:52]Method is POST - this is cgi request [09:56:52]url: /json_proto [09:56:52]query_string will be loaded in cgi processing [09:56:52]execute_cgi json_proto POST (null) [09:56:52]execute_cgi path=json_proto method=POST [09:56:52]POST find Content-Length [09:56:52]Host: 172.17.38.134:8080 [09:56:52]Content-Length: 626 [09:56:52]Content-Type: application/json [09:56:52] [09:56:52]POST finish read [09:56:52]Found Content-Length = 626 [09:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184174", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:52]execute_script... [09:56:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184174", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:52]POST & json_proto [09:56:52]process_json_proto [09:56:52]json parsed OK: [09:56:52]protocol is kg_v1.0 [09:56:52]action value=close_receipt [09:56:52]process_action close_receipt [09:56:52]cmd_close_receipt [09:56:52]MH_GetDate [09:56:52]Write to MH i2c: F0 00 00 52 03 44 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 09 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: F0 09 00 52 03 00 E6 FC 73 66 13 9C 7C 64 97 [09:56:52]GetLastDocTimeStamp 1718876530 [09:56:52]current date 1718877414 [09:56:52]FM_GetShiftState [09:56:52]SAM_PROTO_GetShiftState [09:56:52]wFMCommunicate request_size=4 [09:56:52]MH_SAM_APDU [09:56:52]CAPDU: 80 13 01 00 [09:56:52]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [09:56:52]Write i2c OK [09:56:52]MH_I2C_Read... [09:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:52]Read from MH i2c: E2 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: E2 0E 00 [09:56:52]MH_I2C_Read... [09:56:52]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EB [09:56:52]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:56:52]wFMCommunicate OK [09:56:52]SAM_PROTO_GetShiftState done [09:56:52]FM_GetShiftState done [09:56:52]opened in 1718843069 [09:56:52]opened+sec_in_day 1718929469 [09:56:52]quantity*price = 23000 [09:56:52]sum+1 = 23001 [09:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 20.06.2024 09:56 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34401 ФПД: 117671642336409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095654&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34401&fm=117671642336409&tin=02508201610067®Number=0000000000092786&sum=23000 0 [09:56:54]StoreToDocumentArchive [09:56:54]shift 325 fd 34401 [09:56:54]save to /storage/0325/doc_00034401 [09:56:54]save last doc name /storage/0325/doc_00034401 to /storage/kkm_last_doc_name [09:56:54]save OK [09:56:54]Clear old archive folders... [09:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:56:54]tlvbuf is 002066E0 [09:56:54]SAM_PROTO_ClearQueue [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 09 00 00 [09:56:54]Write to MH i2c: E2 08 00 60 03 80 09 00 00 00 00 00 00 D5 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_ClearQueue done [09:56:54]KKMCreateOFDPacket [09:56:54]OFDProtocolAddRootSTLVToBuf [09:56:54]FM_MakeSignedData [09:56:54]FM_MakeSignedData [09:56:54]SAM_PROTO_SignData [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 01 02 [09:56:54]Write to MH i2c: E2 08 00 61 03 80 0D 01 02 00 00 00 00 DD [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=255 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E6 FC 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [09:56:54]Write to MH i2c: E2 02 01 62 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E6 FC 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 F2 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=33 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 61 86 00 00 35 04 06 00 6B 05 90 71 0C 99 [09:56:54]Write to MH i2c: E2 24 00 63 03 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 61 86 00 00 35 04 06 00 6B 05 90 71 0C 99 00 00 6E [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 03 02 [09:56:54]Write to MH i2c: E2 08 00 64 03 80 0D 03 02 00 00 00 00 E2 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0B 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0B 00 64 03 00 6D A5 65 4E 66 0F D4 FC 90 00 ED [09:56:54]RAPDU: 6D A5 65 4E 66 0F D4 FC 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_SignData done [09:56:54]FM_MakeSignedData done [09:56:54]CreateOFDProtocolMessage [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 11 00 00 [09:56:54]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 37 [09:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:56:54]wFMCommunicate OK [09:56:54]CreateOFDProtocolMessage done [09:56:54]OFDSenderStorePacket 34401 [09:56:54]StoreOFDPacket docnum=34401 [09:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 01 C5 1E 01 2F 15 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E6 FC 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 61 86 00 00 35 04 06 00 6B 05 90 71 0C 99 6D A5 65 4E 66 0F D4 FC [09:56:54]CheckFolder [09:56:54]dirname=/storage/ofd_packets [09:56:54]CheckFolder done [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00034401 [09:56:54]NVStorageSaveData ofd_packets/00034401 [09:56:54]File name is /storage/ofd_packets/00034401 [09:56:54]Write 324 bytes [09:56:54]NVStorageSaveData done [09:56:54]OFDSenderStorePacket done [09:56:54]KKMCreateOFDPacket done [09:56:54]NVStorageSaveData kkm_last_timestamp [09:56:54]File name is /storage/kkm_last_timestamp [09:56:54]Write 4 bytes [09:56:54]NVStorageSaveData done [09:56:54]ExternCall_PrintAddStr [09:56:54]wPrintStart [09:56:54]Write to MH i2c: 01 00 00 66 03 69 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 66 03 00 00 00 00 00 FF 0F 7E [09:56:54]RasterBufferAndPrint [09:56:54]line Счет N : (3)184174 [09:56:54]line ИНН: 02508201610067 [09:56:54]line Контрольно-Кассовый Чек [09:56:54]line ПРОДАЖА [09:56:54]line Товар: 2000036240010 [09:56:54]line Кофе Латте (GABB TRADE) [09:56:54]line 2.000 * 115.00 [09:56:54]line = 230.00 [09:56:54]line НДС 12% НСП 1% [09:56:54]line > о реализуемом товаре [09:56:54]line ИТОГО: 230.00 [09:56:54]line НСП 1% : 2.03 [09:56:54]line НДС 12% : 24.42 [09:56:54]line Наличными: 230.00 [09:56:54]line Безнал.: 0.00 [09:56:54]line Место: АЗС № 120 "Партнер Нефть" [09:56:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:56:54]line СНО: Общий режим [09:56:54]line Чек 11 20.06.2024 09:56 [09:56:54]line Смена: 325 ФФД: 1.0 [09:56:54]line ЗНМ: 0300000172 [09:56:54]line РНМ: 0000000000092786 [09:56:54]line Версия ККМ: 001 [09:56:54]line ФМ: 0000000000875095 [09:56:54]line ФД: 34401 [09:56:54]line ФПД: 117671642336409 [09:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095654&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34401&fm=117671642336409&tin=02508201610067®Number=0000000000092786&sum=23000 [09:56:54]line 0 [09:56:54]OFD Sender: Processing packet 34401 [packets to send 8, broken 7] [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00034401 [09:56:54]OFD Sender: To server: pG, [09:56:54]CommunicateWithHost lk.salyk.kg:30040 [09:56:54]ConnectInit lk.salyk.kg [09:56:54]written 0, free lines is 4095 [09:56:55]Connected sock=8 [09:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 01 C5 1E 01 2F 15 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E6 FC 73 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 61 86 00 00 35 04 06 00 6B 05 90 71 0C 99 6D A5 65 4E 66 0F D4 FC [09:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D1 AF 47 00 C7 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 61 86 00 00 F4 03 04 00 B0 A3 73 66 B6 04 01 00 00 6F 10 D6 2C 39 00 54 F5 [09:56:55]CommunicateWithHost err = 0 [09:56:55]CheckOFDResponse [09:56:55]1017 (14) - 77093643461234 [09:56:55]1041 (16) - 0000000000875095 [09:56:55]1040 (4) - 34401 [09:56:55]1012 (4) - 20.06.2024 03:36 [09:56:55]1206 (1) - 0 [09:56:55]OFD Sender: Remove packet 34401 [09:56:55]ProducePacketName [09:56:55]name=ofd_packets/00034401 [09:56:55]NVStorageDeleteData [09:56:55]Write to MH i2c: 01 00 00 8E 03 91 [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 07 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 0F 0D B4 [09:56:55]RasterBufferAndPrint [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]written 0, free lines is 3350 [09:56:55]MH_Cut [09:56:55]Write to MH i2c: D1 01 00 95 03 01 6A [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 01 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 01 00 95 03 00 69 [09:56:55]Write to MH i2c: 01 00 00 96 03 99 [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]OFD Sender: No OFD packet to send [09:56:56]*** Cut start [09:56:56]*** Partial cut [09:56:56]*** CUTSNS_PIN = 1 [09:56:56]*** CUTSNS_PIN = 0 [09:56:56]*** Brake cut motor [09:56:56]Read from MH i2c: 01 [09:56:56]MH_I2C_Read... [09:56:56]*** Stop cut motor [09:56:56]*** Cut end [09:56:56]Read from MH i2c: 01 07 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 FF 0F AE [09:56:56]process_action close_receipt done [09:56:56]requested_data is exist [09:56:56]produce_requested_data [09:56:56]requested_item fm.sn is exist - process it [09:56:56]wFMCommunicate request_size=4 [09:56:56]MH_SAM_APDU [09:56:56]CAPDU: 80 11 00 00 [09:56:56]Write to MH i2c: E2 08 00 97 03 80 11 00 00 00 00 00 00 14 [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:56]Read from MH i2c: E2 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 17 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 17 00 97 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 69 [09:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:56:56]wFMCommunicate OK [09:56:56]requested_item fd.num is exist - process it [09:56:56]SAM_PROTO_GetFieldsCounters [09:56:56]wFMCommunicate request_size=4 [09:56:56]MH_SAM_APDU [09:56:56]CAPDU: 80 13 00 00 [09:56:56]Write to MH i2c: E2 08 00 98 03 80 13 00 00 00 00 00 00 17 [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:56]Read from MH i2c: E2 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 62 00 [09:56:56]MH_I2C_Read... [09:56:56]Read from MH i2c: E2 62 00 98 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 61 86 00 00 0E 04 04 00 45 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 8F [09:56: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 61 86 00 00 0E 04 04 00 45 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 [09:56:56]wFMCommunicate OK [09:56:56]SAM_PROTO_GetFieldsCounters done [09:56:56]requested_item shift.num is exist - process it [09:56:56]requested_item shift.opened is exist - process it [09:56:56]req_shift_opened [09:56:56]FM_GetShiftState [09:56:56]SAM_PROTO_GetShiftState [09:56:56]wFMCommunicate request_size=4 [09:56:56]MH_SAM_APDU [09:56:56]CAPDU: 80 13 01 00 [09:56:56]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [09:56:56]Write i2c OK [09:56:56]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:57]Read from MH i2c: E2 0E 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 31 [09:56:57]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [09:56:57]wFMCommunicate OK [09:56:57]SAM_PROTO_GetShiftState done [09:56:57]FM_GetShiftState done [09:56:57]req_shift_opened done [09:56:57]requested_item shift.open_date is exist - process it [09:56:57]req_shift_open_date [09:56:57]req_shift_open_date done [09:56:57]produce_requested_data done [09:56:57]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34401,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [09:56:57]process_action_free close_receipt [09:56:57]json_value_free [09:56:57]json_value_free done [09:56:57]process_json_proto returns [09:56:57]Send response to host [09:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34401,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [09:56:57]free response buf [09:56:57]execute_script done [09:56:57]execute_script returns [09:56:57]free content buf [09:56:57]Sock 9.Close socket [09:56:57]Sock 9.Thread stoped [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:10:58]accept exits with 10 [10:10:58]New connection [10:10:58]New thread 3066510692 created [10:10:58]Thread 3066654052 joined [10:10:58]Waiting for new connection... [10:10:58] Sock 10.Parse request [10:10:58]Sock 10.Check first char [10:10:58]Sock 10.First char is OK [10:10:58]request: POST /json_proto HTTP/1.0 [10:10:58]Method: POST [10:10:58]URL: /json_proto [10:10:58]Method is POST - this is cgi request [10:10:58]url: /json_proto [10:10:58]query_string will be loaded in cgi processing [10:10:58]execute_cgi json_proto POST (null) [10:10:58]execute_cgi path=json_proto method=POST [10:10:58]POST find Content-Length [10:10:58]Host: 172.17.38.134:8080 [10:10:58]Content-Length: 670 [10:10:58]Content-Type: application/json [10:10:58] [10:10:58]POST finish read [10:10:58]Found Content-Length = 670 [10:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184175", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:58]execute_script... [10:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184175", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:58]POST & json_proto [10:10:58]process_json_proto [10:10:58]json parsed OK: [10:10:58]protocol is kg_v1.0 [10:10:58]action value=close_receipt [10:10:58]process_action close_receipt [10:10:58]cmd_close_receipt [10:10:58]MH_GetDate [10:10:58]Write to MH i2c: F0 00 00 9A 03 8C [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 09 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 09 00 9A 03 00 34 00 74 66 13 9C 7C 64 32 [10:10:58]GetLastDocTimeStamp 1718877414 [10:10:58]current date 1718878260 [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 9B 03 80 13 01 00 00 00 00 00 1B [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 9B 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 33 [10:10:58]RAPDU: 09 00 01 BD 76 73 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]opened in 1718843069 [10:10:58]opened+sec_in_day 1718929469 [10:10:58]quantity*price = 17000 [10:10:58]sum+1 = 17001 [10:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 20.06.2024 10:11 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34402 ФПД: 82935322055081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101100&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34402&fm=82935322055081&tin=02508201610067®Number=0000000000092786&sum=17000 0 [10:11:00]StoreToDocumentArchive [10:11:00]shift 325 fd 34402 [10:11:00]save to /storage/0325/doc_00034402 [10:11:00]save last doc name /storage/0325/doc_00034402 to /storage/kkm_last_doc_name [10:11:00]save OK [10:11:00]Clear old archive folders... [10:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:11:00]tlvbuf is 001FAA70 [10:11:00]SAM_PROTO_ClearQueue [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 09 00 00 [10:11:00]Write to MH i2c: E2 08 00 A8 03 80 09 00 00 00 00 00 00 1D [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]SAM_PROTO_ClearQueue done [10:11:00]KKMCreateOFDPacket [10:11:00]OFDProtocolAddRootSTLVToBuf [10:11:00]FM_MakeSignedData [10:11:00]FM_MakeSignedData [10:11:00]SAM_PROTO_SignData [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 01 02 [10:11:00]Write to MH i2c: E2 08 00 A9 03 80 0D 01 02 00 00 00 00 25 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=255 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 34 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [10:11:00]Write to MH i2c: E2 02 01 AA 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 34 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 9A [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=41 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 62 86 00 00 35 04 06 00 4B 6D E2 69 11 A9 [10:11:00]Write to MH i2c: E2 2C 00 AB 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 62 86 00 00 35 04 06 00 4B 6D E2 69 11 A9 00 00 9E [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [10:11:00]RAPDU: 90 00 [10:11:00]wFMCommunicate OK [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 0D 03 02 [10:11:00]Write to MH i2c: E2 08 00 AC 03 80 0D 03 02 00 00 00 00 2A [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0B 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0B 00 AC 03 00 5A BB 86 76 B1 D8 6E 5B 90 00 8E [10:11:00]RAPDU: 5A BB 86 76 B1 D8 6E 5B 90 00 [10:11:00]wFMCommunicate OK [10:11:00]SAM_PROTO_SignData done [10:11:00]FM_MakeSignedData done [10:11:00]CreateOFDProtocolMessage [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 11 00 00 [10:11:00]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 17 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7F [10:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:11:00]wFMCommunicate OK [10:11:00]CreateOFDProtocolMessage done [10:11:00]OFDSenderStorePacket 34402 [10:11:00]StoreOFDPacket docnum=34402 [10:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 76 94 26 01 67 E6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 34 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 62 86 00 00 35 04 06 00 4B 6D E2 69 11 A9 5A BB 86 76 B1 D8 6E 5B [10:11:00]CheckFolder [10:11:00]dirname=/storage/ofd_packets [10:11:00]CheckFolder done [10:11:00]ProducePacketName [10:11:00]name=ofd_packets/00034402 [10:11:00]NVStorageSaveData ofd_packets/00034402 [10:11:00]File name is /storage/ofd_packets/00034402 [10:11:00]Write 332 bytes [10:11:00]NVStorageSaveData done [10:11:00]OFDSenderStorePacket done [10:11:00]KKMCreateOFDPacket done [10:11:00]NVStorageSaveData kkm_last_timestamp [10:11:00]File name is /storage/kkm_last_timestamp [10:11:00]Write 4 bytes [10:11:00]NVStorageSaveData done [10:11:00]ExternCall_PrintAddStr [10:11:00]wPrintStart [10:11:00]Write to MH i2c: 01 00 00 AE 03 B1 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 AE 03 00 00 00 00 00 FF 0F C6 [10:11:00]RasterBufferAndPrint [10:11:00]line Счет N : (3)184175 [10:11:00]line ИНН: 02508201610067 [10:11:00]line Контрольно-Кассовый Чек [10:11:00]line ПРОДАЖА [10:11:00]line Товар: 4700000480357 [10:11:00]line Пиво шахтерское 1л ПЭТ [10:11:00]line 1.000 * 170.00 [10:11:00]line = 170.00 [10:11:00]line НДС 12% НСП 1% [10:11:00]line > о реализуемом товаре [10:11:00]line ИТОГО: 170.00 [10:11:00]line НСП 1% : 1.50 [10:11:00]line НДС 12% : 18.05 [10:11:00]line Наличными: 170.00 [10:11:00]line Безнал.: 0.00 [10:11:00]line Место: АЗС № 120 "Партнер Нефть" [10:11:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:11:00]line СНО: Общий режим [10:11:00]line Чек 12 20.06.2024 10:11 [10:11:00]line Смена: 325 ФФД: 1.0 [10:11:00]line ЗНМ: 0300000172 [10:11:00]line РНМ: 0000000000092786 [10:11:00]line Версия ККМ: 001 [10:11:00]line ФМ: 0000000000875095 [10:11:00]line ФД: 34402 [10:11:00]line ФПД: 82935322055081 [10:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101100&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34402&fm=82935322055081&tin=02508201610067®Number=0000000000092786&sum=17000 [10:11:00]line 0 [10:11:00]OFD Sender: Processing packet 34402 [packets to send 8, broken 7] [10:11:00]ProducePacketName [10:11:00]name=ofd_packets/00034402 [10:11:00]OFD Sender: To server: pG, [10:11:00]CommunicateWithHost lk.salyk.kg:30040 [10:11:00]ConnectInit lk.salyk.kg [10:11:00]written 0, free lines is 4095 [10:11:01]Connected sock=9 [10:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 76 94 26 01 67 E6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 34 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 62 86 00 00 35 04 06 00 4B 6D E2 69 11 A9 5A BB 86 76 B1 D8 6E 5B [10:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 B7 3A 47 00 4F 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 35 30 39 35 10 04 04 00 62 86 00 00 F4 03 04 00 FE A6 73 66 B6 04 01 00 00 3A 68 ED B9 3B EC 55 2E [10:11:01]CommunicateWithHost err = 0 [10:11:01]CheckOFDResponse [10:11:01]1017 (14) - 77093643461234 [10:11:01]1041 (16) - 0000000000875095 [10:11:01]1040 (4) - 34402 [10:11:01]1012 (4) - 20.06.2024 03:50 [10:11:01]1206 (1) - 0 [10:11:01]OFD Sender: Remove packet 34402 [10:11:01]ProducePacketName [10:11:01]name=ofd_packets/00034402 [10:11:01]NVStorageDeleteData [10:11:01]Write to MH i2c: 01 00 00 D6 03 D9 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 04 0D F1 [10:11:01]RasterBufferAndPrint [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]line [10:11:01]written 0, free lines is 3339 [10:11:01]MH_Cut [10:11:01]Write to MH i2c: D1 01 00 DD 03 01 B2 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 01 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: D1 01 00 DD 03 00 B1 [10:11:01]Write to MH i2c: 01 00 00 DE 03 E1 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]OFD Sender: No OFD packet to send [10:11:02]*** Cut start [10:11:02]*** Partial cut [10:11:02]*** CUTSNS_PIN = 1 [10:11:02]*** CUTSNS_PIN = 0 [10:11:02]*** Brake cut motor [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]*** Stop cut motor [10:11:02]*** Cut end [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [10:11:02]process_action close_receipt done [10:11:02]requested_data is exist [10:11:02]produce_requested_data [10:11:02]requested_item fm.sn is exist - process it [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 11 00 00 [10:11:02]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B1 [10:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:11:02]wFMCommunicate OK [10:11:02]requested_item fd.num is exist - process it [10:11:02]SAM_PROTO_GetFieldsCounters [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 13 00 00 [10:11:02]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 62 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 62 00 E0 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 62 86 00 00 0E 04 04 00 45 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 DB [10:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 62 86 00 00 0E 04 04 00 45 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 [10:11:02]wFMCommunicate OK [10:11:02]SAM_PROTO_GetFieldsCounters done [10:11:02]requested_item shift.num is exist - process it [10:11:02]requested_item shift.opened is exist - process it [10:11:02]req_shift_opened [10:11:02]FM_GetShiftState [10:11:02]SAM_PROTO_GetShiftState [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 13 01 00 [10:11:02]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0E 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 79 [10:11:02]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:11:02]wFMCommunicate OK [10:11:02]SAM_PROTO_GetShiftState done [10:11:02]FM_GetShiftState done [10:11:02]req_shift_opened done [10:11:02]requested_item shift.open_date is exist - process it [10:11:02]req_shift_open_date [10:11:02]req_shift_open_date done [10:11:02]produce_requested_data done [10:11:02]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34402,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:11:02]process_action_free close_receipt [10:11:02]json_value_free [10:11:02]json_value_free done [10:11:02]process_json_proto returns [10:11:02]Send response to host [10:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34402,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:11:02]free response buf [10:11:02]execute_script done [10:11:02]execute_script returns [10:11:02]free content buf [10:11:02]Sock 10.Close socket [10:11:02]Sock 10.Thread stoped [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:49]accept exits with 8 [10:13:49]New connection [10:13:49]New thread 3066654052 created [10:13:49]Thread 3066510692 joined [10:13:49]Waiting for new connection... [10:13:49] Sock 8.Parse request [10:13:49]Sock 8.Check first char [10:13:49]Sock 8.First char is OK [10:13:49]request: POST /json_proto HTTP/1.0 [10:13:49]Method: POST [10:13:49]URL: /json_proto [10:13:49]Method is POST - this is cgi request [10:13:49]url: /json_proto [10:13:49]query_string will be loaded in cgi processing [10:13:49]execute_cgi json_proto POST (null) [10:13:49]execute_cgi path=json_proto method=POST [10:13:49]POST find Content-Length [10:13:49]Host: 172.17.38.134:8080 [10:13:49]Content-Length: 675 [10:13:49]Content-Type: application/json [10:13:49] [10:13:49]POST finish read [10:13:49]Found Content-Length = 675 [10:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184176", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:49]execute_script... [10:13: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 : (3)184176", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:49]POST & json_proto [10:13:49]process_json_proto [10:13:49]json parsed OK: [10:13:49]protocol is kg_v1.0 [10:13:49]action value=close_receipt [10:13:49]process_action close_receipt [10:13:49]cmd_close_receipt [10:13:49]MH_GetDate [10:13:49]Write to MH i2c: F0 00 00 E2 03 D4 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: F0 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: F0 09 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: F0 09 00 E2 03 00 DF 00 74 66 13 9C 7C 64 25 [10:13:49]GetLastDocTimeStamp 1718878260 [10:13:49]current date 1718878431 [10:13:49]FM_GetShiftState [10:13:49]SAM_PROTO_GetShiftState [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 13 01 00 [10:13:49]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 0E 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7B [10:13:49]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:13:49]wFMCommunicate OK [10:13:49]SAM_PROTO_GetShiftState done [10:13:49]FM_GetShiftState done [10:13:49]opened in 1718843069 [10:13:49]opened+sec_in_day 1718929469 [10:13:49]quantity*price = 2100 [10:13:49]sum+1 = 2101 [10:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 13 20.06.2024 10:13 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34403 ФПД: 81487073908333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101351&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34403&fm=81487073908333&tin=02508201610067®Number=0000000000092786&sum=2100 0 [10:13:51]StoreToDocumentArchive [10:13:51]shift 325 fd 34403 [10:13:51]save to /storage/0325/doc_00034403 [10:13:51]save last doc name /storage/0325/doc_00034403 to /storage/kkm_last_doc_name [10:13:51]save OK [10:13:51]Clear old archive folders... [10:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:13:51]tlvbuf is 00207810 [10:13:51]SAM_PROTO_ClearQueue [10:13:51]wFMCommunicate request_size=4 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 09 00 00 [10:13:51]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [10:13:51]RAPDU: 90 00 [10:13:51]wFMCommunicate OK [10:13:51]SAM_PROTO_ClearQueue done [10:13:51]KKMCreateOFDPacket [10:13:51]OFDProtocolAddRootSTLVToBuf [10:13:51]FM_MakeSignedData [10:13:51]FM_MakeSignedData [10:13:51]SAM_PROTO_SignData [10:13:51]wFMCommunicate request_size=4 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 0D 01 02 [10:13:51]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [10:13:51]RAPDU: 90 00 [10:13:51]wFMCommunicate OK [10:13:51]wFMCommunicate request_size=255 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 DF 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [10:13:51]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 DF 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 A9 [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [10:13:51]RAPDU: 90 00 [10:13:51]wFMCommunicate OK [10:13:51]wFMCommunicate request_size=46 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 0D 02 02 29 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 63 86 00 00 35 04 06 00 4A 1C B0 18 16 6D [10:13:51]Write to MH i2c: E2 31 00 F3 03 80 0D 02 02 29 00 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 63 86 00 00 35 04 06 00 4A 1C B0 18 16 6D 00 00 9F [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [10:13:51]RAPDU: 90 00 [10:13:51]wFMCommunicate OK [10:13:51]wFMCommunicate request_size=4 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 0D 03 02 [10:13:51]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0B 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0B 00 F4 03 00 55 79 57 6B FB 6E 2C 05 90 00 9D [10:13:51]RAPDU: 55 79 57 6B FB 6E 2C 05 90 00 [10:13:51]wFMCommunicate OK [10:13:51]SAM_PROTO_SignData done [10:13:51]FM_MakeSignedData done [10:13:51]CreateOFDProtocolMessage [10:13:51]wFMCommunicate request_size=4 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 11 00 00 [10:13:51]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 17 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C7 [10:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:13:51]wFMCommunicate OK [10:13:51]CreateOFDProtocolMessage done [10:13:51]OFDSenderStorePacket 34403 [10:13:51]StoreOFDPacket docnum=34403 [10:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 E7 41 2B 01 C4 61 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 DF 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 63 86 00 00 35 04 06 00 4A 1C B0 18 16 6D 55 79 57 6B FB 6E 2C 05 [10:13:51]CheckFolder [10:13:51]dirname=/storage/ofd_packets [10:13:51]CheckFolder done [10:13:51]ProducePacketName [10:13:51]name=ofd_packets/00034403 [10:13:51]NVStorageSaveData ofd_packets/00034403 [10:13:51]File name is /storage/ofd_packets/00034403 [10:13:51]Write 337 bytes [10:13:51]NVStorageSaveData done [10:13:51]OFDSenderStorePacket done [10:13:51]KKMCreateOFDPacket done [10:13:51]NVStorageSaveData kkm_last_timestamp [10:13:51]File name is /storage/kkm_last_timestamp [10:13:51]Write 4 bytes [10:13:51]NVStorageSaveData done [10:13:51]ExternCall_PrintAddStr [10:13:51]wPrintStart [10:13:51]Write to MH i2c: 01 00 00 F6 03 F9 [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: 01 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: 01 07 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [10:13:51]RasterBufferAndPrint [10:13:51]line Счет N : (3)184176 [10:13:51]line ИНН: 02508201610067 [10:13:51]line Контрольно-Кассовый Чек [10:13:51]line ПРОДАЖА [10:13:51]line Товар: 2000053020015 [10:13:51]line Бумажные стаканы 250мл 1шт [10:13:51]line 3.000 * 7.00 [10:13:51]line = 21.00 [10:13:51]line НДС 12% НСП 1% [10:13:51]line > о реализуемом товаре [10:13:51]line ИТОГО: 21.00 [10:13:51]line НСП 1% : 0.19 [10:13:51]line НДС 12% : 2.23 [10:13:51]line Наличными: 21.00 [10:13:51]line Безнал.: 0.00 [10:13:51]line Место: АЗС № 120 "Партнер Нефть" [10:13:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:13:51]line СНО: Общий режим [10:13:51]line Чек 13 20.06.2024 10:13 [10:13:51]line Смена: 325 ФФД: 1.0 [10:13:51]line ЗНМ: 0300000172 [10:13:51]line РНМ: 0000000000092786 [10:13:51]line Версия ККМ: 001 [10:13:51]line ФМ: 0000000000875095 [10:13:51]line ФД: 34403 [10:13:51]line ФПД: 81487073908333 [10:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101351&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34403&fm=81487073908333&tin=02508201610067®Number=0000000000092786&sum=2100 [10:13:51]line 0 [10:13:51]OFD Sender: Processing packet 34403 [packets to send 8, broken 7] [10:13:51]ProducePacketName [10:13:51]name=ofd_packets/00034403 [10:13:51]OFD Sender: To server: pG, [10:13:51]CommunicateWithHost lk.salyk.kg:30040 [10:13:51]ConnectInit lk.salyk.kg [10:13:51]written 0, free lines is 4095 [10:13:51]Connected sock=10 [10:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 E7 41 2B 01 C4 61 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 DF 00 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 63 86 00 00 35 04 06 00 4A 1C B0 18 16 6D 55 79 57 6B FB 6E 2C 05 [10:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 13 7F 47 00 EF 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 35 30 39 35 10 04 04 00 63 86 00 00 F4 03 04 00 A9 A7 73 66 B6 04 01 00 00 61 98 56 1A CB B3 61 D2 [10:13:52]CommunicateWithHost err = 0 [10:13:52]CheckOFDResponse [10:13:52]1017 (14) - 77093643461234 [10:13:52]1041 (16) - 0000000000875095 [10:13:52]1040 (4) - 34403 [10:13:52]1012 (4) - 20.06.2024 03:53 [10:13:52]1206 (1) - 0 [10:13:52]OFD Sender: Remove packet 34403 [10:13:52]ProducePacketName [10:13:52]name=ofd_packets/00034403 [10:13:52]NVStorageDeleteData [10:13:52]Write to MH i2c: 01 00 00 1F 04 23 [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 07 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 D7 0C 0D [10:13:52]RasterBufferAndPrint [10:13:52]line [10:13:52]line [10:13:52]line [10:13:52]line [10:13:52]line [10:13:52]written 0, free lines is 3292 [10:13:52]MH_Cut [10:13:52]Write to MH i2c: D1 01 00 26 04 01 FC [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: D1 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: D1 01 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: D1 01 00 26 04 00 FB [10:13:52]Write to MH i2c: 01 00 00 27 04 2B [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]OFD Sender: No OFD packet to send [10:13:53]*** Cut start [10:13:53]*** Partial cut [10:13:53]*** CUTSNS_PIN = 1 [10:13:53]*** CUTSNS_PIN = 0 [10:13:53]*** Brake cut motor [10:13:53]Read from MH i2c: 01 [10:13:53]MH_I2C_Read... [10:13:53]*** Stop cut motor [10:13:53]*** Cut end [10:13:53]Read from MH i2c: 01 07 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [10:13:53]process_action close_receipt done [10:13:53]requested_data is exist [10:13:53]produce_requested_data [10:13:53]requested_item fm.sn is exist - process it [10:13:53]wFMCommunicate request_size=4 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 11 00 00 [10:13:53]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 17 00 [10:13:53]MH_I2C_Read... [10:13:53]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 35 30 39 35 90 00 FB [10:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:13:53]wFMCommunicate OK [10:13:53]requested_item fd.num is exist - process it [10:13:53]SAM_PROTO_GetFieldsCounters [10:13:53]wFMCommunicate request_size=4 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 13 00 00 [10:13:53]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 62 00 [10:13:53]MH_I2C_Read... [10:13:53]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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 63 86 00 00 0E 04 04 00 45 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 29 [10:13: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 63 86 00 00 0E 04 04 00 45 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:13:53]wFMCommunicate OK [10:13:53]SAM_PROTO_GetFieldsCounters done [10:13:53]requested_item shift.num is exist - process it [10:13:53]requested_item shift.opened is exist - process it [10:13:53]req_shift_opened [10:13:53]FM_GetShiftState [10:13:53]SAM_PROTO_GetShiftState [10:13:53]wFMCommunicate request_size=4 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 13 01 00 [10:13:53]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 0E 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C3 [10:13:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:13:53]wFMCommunicate OK [10:13:53]SAM_PROTO_GetShiftState done [10:13:53]FM_GetShiftState done [10:13:53]req_shift_opened done [10:13:53]requested_item shift.open_date is exist - process it [10:13:53]req_shift_open_date [10:13:53]req_shift_open_date done [10:13:53]produce_requested_data done [10:13:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34403,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:13:53]process_action_free close_receipt [10:13:53]json_value_free [10:13:53]json_value_free done [10:13:53]process_json_proto returns [10:13:53]Send response to host [10:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34403,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:13:53]free response buf [10:13:53]execute_script done [10:13:53]execute_script returns [10:13:53]free content buf [10:13:53]Sock 8.Close socket [10:13:53]Sock 8.Thread stoped [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:29]accept exits with 9 [10:14:29]New connection [10:14:29]New thread 3066510692 created [10:14:29]Thread 3066654052 joined [10:14:29]Waiting for new connection... [10:14:29] Sock 9.Parse request [10:14:29]Sock 9.Check first char [10:14:29]Sock 9.First char is OK [10:14:29]request: POST /json_proto HTTP/1.0 [10:14:29]Method: POST [10:14:29]URL: /json_proto [10:14:29]Method is POST - this is cgi request [10:14:29]url: /json_proto [10:14:29]query_string will be loaded in cgi processing [10:14:29]execute_cgi json_proto POST (null) [10:14:29]execute_cgi path=json_proto method=POST [10:14:29]POST find Content-Length [10:14:29]Host: 172.17.38.134:8080 [10:14:29]Content-Length: 1203 [10:14:29]Content-Type: application/json [10:14:29] [10:14:29]POST finish read [10:14:29]Found Content-Length = 1203 [10:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184177", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:29]execute_script... [10:14:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184177", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:29]POST & json_proto [10:14:29]process_json_proto [10:14:29]json parsed OK: [10:14:29]protocol is kg_v1.0 [10:14:29]action value=close_receipt [10:14:29]process_action close_receipt [10:14:29]cmd_close_receipt [10:14:29]MH_GetDate [10:14:29]Write to MH i2c: F0 00 00 2B 04 1E [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: F0 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: F0 09 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: F0 09 00 2B 04 00 06 01 74 66 13 9C 7C 64 97 [10:14:29]GetLastDocTimeStamp 1718878431 [10:14:29]current date 1718878470 [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 2C 04 80 13 01 00 00 00 00 00 AD [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 2C 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C5 [10:14:29]RAPDU: 09 00 01 BD 76 73 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]opened in 1718843069 [10:14:29]opened+sec_in_day 1718929469 [10:14:29]quantity*price = 13800 [10:14:29]sum+1 = 13801 [10:14:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521292 Напиток Сок березы 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 388.00 НСП 1% : 3.44 НДС 12% : 41.19 Наличными: 388.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 20.06.2024 10:14 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34404 ФПД: 189775097400423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101430&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34404&fm=189775097400423&tin=02508201610067®Number=0000000000092786&sum=38800 0 [10:14:30]StoreToDocumentArchive [10:14:30]shift 325 fd 34404 [10:14:30]save to /storage/0325/doc_00034404 [10:14:30]save last doc name /storage/0325/doc_00034404 to /storage/kkm_last_doc_name [10:14:30]save OK [10:14:30]Clear old archive folders... [10:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=507 [10:14:30]tlvbuf is 001EC420 [10:14:30]SAM_PROTO_ClearQueue [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 09 00 00 [10:14:30]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [10:14:30]RAPDU: 90 00 [10:14:30]wFMCommunicate OK [10:14:30]SAM_PROTO_ClearQueue done [10:14:30]KKMCreateOFDPacket [10:14:30]OFDProtocolAddRootSTLVToBuf [10:14:30]FM_MakeSignedData [10:14:30]FM_MakeSignedData [10:14:30]SAM_PROTO_SignData [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 0D 01 02 [10:14:30]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [10:14:30]RAPDU: 90 00 [10:14:30]wFMCommunicate OK [10:14:30]wFMCommunicate request_size=255 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 [10:14:30]Write to MH i2c: E2 02 01 3B 04 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 00 00 C9 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=255 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 02 02 FA 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 10 00 00 00 00 07 04 06 00 90 97 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 06 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 64 86 00 [10:14:31]Write to MH i2c: E2 02 01 3C 04 80 0D 02 02 FA 00 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 10 00 00 00 00 07 04 06 00 90 97 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 06 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 64 86 00 00 00 1D [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=16 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AC 99 75 44 8C 67 [10:14:31]Write to MH i2c: E2 13 00 3D 04 80 0D 02 02 0B 00 00 35 04 06 00 AC 99 75 44 8C 67 00 00 01 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 03 02 [10:14:31]Write to MH i2c: E2 08 00 3E 04 80 0D 03 02 00 00 00 00 BD [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 0B 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 0B 00 3E 04 00 8F E0 9D A4 9B EC 2A B9 90 00 D8 [10:14:31]RAPDU: 8F E0 9D A4 9B EC 2A B9 90 00 [10:14:31]wFMCommunicate OK [10:14:31]SAM_PROTO_SignData done [10:14:31]FM_MakeSignedData done [10:14:31]CreateOFDProtocolMessage [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 11 00 00 [10:14:31]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 17 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 12 [10:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:14:31]wFMCommunicate OK [10:14:31]CreateOFDProtocolMessage done [10:14:31]OFDSenderStorePacket 34404 [10:14:31]StoreOFDPacket docnum=34404 [10:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 02 00 00 EE 82 07 02 8C A9 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 10 00 00 00 00 07 04 06 00 90 97 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 06 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 64 86 00 00 35 04 06 00 AC 99 75 44 8C 67 8F E0 9D A4 9B EC 2A B9 [10:14:31]CheckFolder [10:14:31]dirname=/storage/ofd_packets [10:14:31]CheckFolder done [10:14:31]ProducePacketName [10:14:31]name=ofd_packets/00034404 [10:14:31]NVStorageSaveData ofd_packets/00034404 [10:14:31]File name is /storage/ofd_packets/00034404 [10:14:31]Write 557 bytes [10:14:31]NVStorageSaveData done [10:14:31]OFDSenderStorePacket done [10:14:31]KKMCreateOFDPacket done [10:14:31]NVStorageSaveData kkm_last_timestamp [10:14:31]File name is /storage/kkm_last_timestamp [10:14:31]Write 4 bytes [10:14:31]NVStorageSaveData done [10:14:31]ExternCall_PrintAddStr [10:14:31]wPrintStart [10:14:31]Write to MH i2c: 01 00 00 40 04 44 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 07 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [10:14:31]RasterBufferAndPrint [10:14:31]line Счет N : (3)184177 [10:14:31]line ИНН: 02508201610067 [10:14:31]line Контрольно-Кассовый Чек [10:14:31]line ПРОДАЖА [10:14:31]line Товар: 4640030091645 [10:14:31]line Сигареты ESSE Exchange M [10:14:31]line 1.000 * 138.00 [10:14:31]line = 138.00 [10:14:31]line НДС 12% НСП 1% [10:14:31]line > о реализуемом товаре [10:14:31]line Товар: 4870202522015 [10:14:31]line Напиток Maxi Чай Грушевый 1,2л [10:14:31]line 1.000 * 125.00 [10:14:31]line = 125.00 [10:14:31]line НДС 12% НСП 1% [10:14:31]line > о реализуемом товаре [10:14:31]line Товар: 4870202521292 [10:14:31]line Напиток Сок березы 1,2л [10:14:31]line 1.000 * 125.00 [10:14:31]line = 125.00 [10:14:31]line НДС 12% НСП 1% [10:14:31]line > о реализуемом товаре [10:14:31]line ИТОГО: 388.00 [10:14:31]line НСП 1% : 3.44 [10:14:31]line НДС 12% : 41.19 [10:14:31]line Наличными: 388.00 [10:14:31]line Безнал.: 0.00 [10:14:31]line Место: АЗС № 120 "Партнер Нефть" [10:14:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:14:31]line СНО: Общий режим [10:14:31]line Чек 14 20.06.2024 10:14 [10:14:31]line Смена: 325 ФФД: 1.0 [10:14:31]line ЗНМ: 0300000172 [10:14:31]line РНМ: 0000000000092786 [10:14:31]line Версия ККМ: 001 [10:14:31]line ФМ: 0000000000875095 [10:14:31]line ФД: 34404 [10:14:31]line ФПД: 189775097400423 [10:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101430&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34404&fm=189775097400423&tin=02508201610067®Number=0000000000092786&sum=38800 [10:14:31]line 0 [10:14:31]OFD Sender: Processing packet 34404 [packets to send 8, broken 7] [10:14:31]ProducePacketName [10:14:31]name=ofd_packets/00034404 [10:14:31]OFD Sender: To server: pG, [10:14:31]CommunicateWithHost lk.salyk.kg:30040 [10:14:31]ConnectInit lk.salyk.kg [10:14:31]written 0, free lines is 4095 [10:14:32]Connected sock=10 [10:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 02 00 00 EE 82 07 02 8C A9 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 10 00 00 00 00 07 04 06 00 90 97 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 06 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 64 86 00 00 35 04 06 00 AC 99 75 44 8C 67 8F E0 9D A4 9B EC 2A B9 [10:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 6B 98 47 00 9D 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 64 86 00 00 F4 03 04 00 D1 A7 73 66 B6 04 01 00 00 4E FE B3 CE 41 44 24 BC [10:14:32]CommunicateWithHost err = 0 [10:14:32]CheckOFDResponse [10:14:32]1017 (14) - 77093643461234 [10:14:32]1041 (16) - 0000000000875095 [10:14:32]1040 (4) - 34404 [10:14:32]1012 (4) - 20.06.2024 03:53 [10:14:32]1206 (1) - 0 [10:14:32]OFD Sender: Remove packet 34404 [10:14:32]ProducePacketName [10:14:32]name=ofd_packets/00034404 [10:14:32]NVStorageDeleteData [10:14:32]Write to MH i2c: 01 00 00 75 04 79 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 3A 0C C6 [10:14:32]RasterBufferAndPrint [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]written 0, free lines is 3136 [10:14:32]MH_Cut [10:14:32]Write to MH i2c: D1 01 00 7C 04 01 52 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 01 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 01 00 7C 04 00 51 [10:14:32]Write to MH i2c: 01 00 00 7D 04 81 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]OFD Sender: No OFD packet to send [10:14:33]*** Cut start [10:14:33]*** Partial cut [10:14:33]*** CUTSNS_PIN = 1 [10:14:33]*** CUTSNS_PIN = 0 [10:14:33]*** Brake cut motor [10:14:34]Read from MH i2c: 01 [10:14:34]MH_I2C_Read... [10:14:34]*** Stop cut motor [10:14:34]*** Cut end [10:14:34]Read from MH i2c: 01 07 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [10:14:34]process_action close_receipt done [10:14:34]requested_data is exist [10:14:34]produce_requested_data [10:14:34]requested_item fm.sn is exist - process it [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 11 00 00 [10:14:34]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 51 [10:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:14:34]wFMCommunicate OK [10:14:34]requested_item fd.num is exist - process it [10:14:34]SAM_PROTO_GetFieldsCounters [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 13 00 00 [10:14:34]Write to MH i2c: E2 08 00 7F 04 80 13 00 00 00 00 00 00 FF [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 62 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 62 00 7F 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 64 86 00 00 0E 04 04 00 45 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 83 [10:14: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 64 86 00 00 0E 04 04 00 45 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 [10:14:34]wFMCommunicate OK [10:14:34]SAM_PROTO_GetFieldsCounters done [10:14:34]requested_item shift.num is exist - process it [10:14:34]requested_item shift.opened is exist - process it [10:14:34]req_shift_opened [10:14:34]FM_GetShiftState [10:14:34]SAM_PROTO_GetShiftState [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 13 01 00 [10:14:34]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 0E 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 19 [10:14:34]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:14:34]wFMCommunicate OK [10:14:34]SAM_PROTO_GetShiftState done [10:14:34]FM_GetShiftState done [10:14:34]req_shift_opened done [10:14:34]requested_item shift.open_date is exist - process it [10:14:34]req_shift_open_date [10:14:34]req_shift_open_date done [10:14:34]produce_requested_data done [10:14:34]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34404,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:14:34]process_action_free close_receipt [10:14:34]json_value_free [10:14:34]json_value_free done [10:14:34]process_json_proto returns [10:14:34]Send response to host [10:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34404,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:14:34]free response buf [10:14:34]execute_script done [10:14:34]execute_script returns [10:14:34]free content buf [10:14:34]Sock 9.Close socket [10:14:34]Sock 9.Thread stoped [10:14:37]OFD Sender: No OFD packet to send [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:15]accept exits with 8 [10:15:15]New connection [10:15:15]New thread 3066654052 created [10:15:15]Thread 3066510692 joined [10:15:15]Waiting for new connection... [10:15:15] Sock 8.Parse request [10:15:15]Sock 8.Check first char [10:15:15]Sock 8.First char is OK [10:15:15]request: POST /json_proto HTTP/1.0 [10:15:15]Method: POST [10:15:15]URL: /json_proto [10:15:15]Method is POST - this is cgi request [10:15:15]url: /json_proto [10:15:15]query_string will be loaded in cgi processing [10:15:15]execute_cgi json_proto POST (null) [10:15:15]execute_cgi path=json_proto method=POST [10:15:15]POST find Content-Length [10:15:15]Host: 172.17.38.134:8080 [10:15:15]Content-Length: 638 [10:15:15]Content-Type: application/json [10:15:15] [10:15:15]POST finish read [10:15:15]Found Content-Length = 638 [10:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184178", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:15]execute_script... [10:15: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)184178", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:15]POST & json_proto [10:15:15]process_json_proto [10:15:15]json parsed OK: [10:15:15]protocol is kg_v1.0 [10:15:15]action value=close_receipt [10:15:15]process_action close_receipt [10:15:15]cmd_close_receipt [10:15:15]MH_GetDate [10:15:15]Write to MH i2c: F0 00 00 81 04 74 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 09 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: F0 09 00 81 04 00 34 01 74 66 13 9C 7C 64 1B [10:15:15]GetLastDocTimeStamp 1718878470 [10:15:15]current date 1718878516 [10:15:15]FM_GetShiftState [10:15:15]SAM_PROTO_GetShiftState [10:15:15]wFMCommunicate request_size=4 [10:15:15]MH_SAM_APDU [10:15:15]CAPDU: 80 13 01 00 [10:15:15]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [10:15:15]Write i2c OK [10:15:15]MH_I2C_Read... [10:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:15]Read from MH i2c: E2 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 0E 00 [10:15:15]MH_I2C_Read... [10:15:15]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 1B [10:15:15]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:15:15]wFMCommunicate OK [10:15:15]SAM_PROTO_GetShiftState done [10:15:15]FM_GetShiftState done [10:15:15]opened in 1718843069 [10:15:15]opened+sec_in_day 1718929469 [10:15:15]quantity*price = 7000 [10:15:15]sum+1 = 7001 [10:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 20.06.2024 10:15 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34405 ФПД: 203426486967542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101517&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34405&fm=203426486967542&tin=02508201610067®Number=0000000000092786&sum=7000 0 [10:15:16]StoreToDocumentArchive [10:15:16]shift 325 fd 34405 [10:15:16]save to /storage/0325/doc_00034405 [10:15:16]save last doc name /storage/0325/doc_00034405 to /storage/kkm_last_doc_name [10:15:16]save OK [10:15:16]Clear old archive folders... [10:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:15:16]tlvbuf is 0020DC80 [10:15:16]SAM_PROTO_ClearQueue [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 09 00 00 [10:15:16]Write to MH i2c: E2 08 00 8F 04 80 09 00 00 00 00 00 00 05 [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [10:15:16]RAPDU: 90 00 [10:15:16]wFMCommunicate OK [10:15:16]SAM_PROTO_ClearQueue done [10:15:16]KKMCreateOFDPacket [10:15:16]OFDProtocolAddRootSTLVToBuf [10:15:16]FM_MakeSignedData [10:15:16]FM_MakeSignedData [10:15:16]SAM_PROTO_SignData [10:15:16]wFMCommunicate request_size=4 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 0D 01 02 [10:15:16]Write to MH i2c: E2 08 00 90 04 80 0D 01 02 00 00 00 00 0D [10:15:16]Write i2c OK [10:15:16]MH_I2C_Read... [10:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:16]Read from MH i2c: E2 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 [10:15:16]MH_I2C_Read... [10:15:16]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [10:15:16]RAPDU: 90 00 [10:15:16]wFMCommunicate OK [10:15:16]wFMCommunicate request_size=255 [10:15:16]MH_SAM_APDU [10:15:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [10:15:16]Write to MH i2c: E2 02 01 91 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 94 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [10:15:17]RAPDU: 90 00 [10:15:17]wFMCommunicate OK [10:15:17]wFMCommunicate request_size=32 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 65 86 00 00 35 04 06 00 B9 03 EB 7E 5C F6 [10:15:17]Write to MH i2c: E2 23 00 92 04 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 65 86 00 00 35 04 06 00 B9 03 EB 7E 5C F6 00 00 D1 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [10:15:17]RAPDU: 90 00 [10:15:17]wFMCommunicate OK [10:15:17]wFMCommunicate request_size=4 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 0D 03 02 [10:15:17]Write to MH i2c: E2 08 00 93 04 80 0D 03 02 00 00 00 00 12 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 0B 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 0B 00 93 04 00 73 30 B7 A2 53 8E 47 A6 90 00 DD [10:15:17]RAPDU: 73 30 B7 A2 53 8E 47 A6 90 00 [10:15:17]wFMCommunicate OK [10:15:17]SAM_PROTO_SignData done [10:15:17]FM_MakeSignedData done [10:15:17]CreateOFDProtocolMessage [10:15:17]wFMCommunicate request_size=4 [10:15:17]MH_SAM_APDU [10:15:17]CAPDU: 80 11 00 00 [10:15:17]Write to MH i2c: E2 08 00 94 04 80 11 00 00 00 00 00 00 12 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:17]Read from MH i2c: E2 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 17 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: E2 17 00 94 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [10:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:15:17]wFMCommunicate OK [10:15:17]CreateOFDProtocolMessage done [10:15:17]OFDSenderStorePacket 34405 [10:15:17]StoreOFDPacket docnum=34405 [10:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 4E 2A 1D 01 EB 66 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 65 86 00 00 35 04 06 00 B9 03 EB 7E 5C F6 73 30 B7 A2 53 8E 47 A6 [10:15:17]CheckFolder [10:15:17]dirname=/storage/ofd_packets [10:15:17]CheckFolder done [10:15:17]ProducePacketName [10:15:17]name=ofd_packets/00034405 [10:15:17]NVStorageSaveData ofd_packets/00034405 [10:15:17]File name is /storage/ofd_packets/00034405 [10:15:17]Write 323 bytes [10:15:17]NVStorageSaveData done [10:15:17]OFDSenderStorePacket done [10:15:17]KKMCreateOFDPacket done [10:15:17]NVStorageSaveData kkm_last_timestamp [10:15:17]File name is /storage/kkm_last_timestamp [10:15:17]Write 4 bytes [10:15:17]NVStorageSaveData done [10:15:17]ExternCall_PrintAddStr [10:15:17]wPrintStart [10:15:17]Write to MH i2c: 01 00 00 95 04 99 [10:15:17]Write i2c OK [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 07 00 [10:15:17]MH_I2C_Read... [10:15:17]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [10:15:17]RasterBufferAndPrint [10:15:17]line Счет N : (3)184178 [10:15:17]line ИНН: 02508201610067 [10:15:17]line Контрольно-Кассовый Чек [10:15:17]line ПРОДАЖА [10:15:17]line Товар: 4700002082931 [10:15:17]line Водка Хорошая 0,1л [10:15:17]line 1.000 * 70.00 [10:15:17]line = 70.00 [10:15:17]line НДС 12% НСП 1% [10:15:17]line > о реализуемом товаре [10:15:17]line ИТОГО: 70.00 [10:15:17]line НСП 1% : 0.62 [10:15:17]line НДС 12% : 7.43 [10:15:17]line Наличными: 70.00 [10:15:17]line Безнал.: 0.00 [10:15:17]line Место: АЗС № 120 "Партнер Нефть" [10:15:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:15:17]line СНО: Общий режим [10:15:17]line Чек 15 20.06.2024 10:15 [10:15:17]line Смена: 325 ФФД: 1.0 [10:15:17]line ЗНМ: 0300000172 [10:15:17]line РНМ: 0000000000092786 [10:15:17]line Версия ККМ: 001 [10:15:17]line ФМ: 0000000000875095 [10:15:17]line ФД: 34405 [10:15:17]line ФПД: 203426486967542 [10:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101517&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34405&fm=203426486967542&tin=02508201610067®Number=0000000000092786&sum=7000 [10:15:17]line 0 [10:15:17]OFD Sender: Processing packet 34405 [packets to send 8, broken 7] [10:15:17]ProducePacketName [10:15:17]name=ofd_packets/00034405 [10:15:17]OFD Sender: To server: pG, [10:15:17]CommunicateWithHost lk.salyk.kg:30040 [10:15:17]ConnectInit lk.salyk.kg [10:15:17]written 0, free lines is 4095 [10:15:17]Connected sock=11 [10:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 4E 2A 1D 01 EB 66 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 65 86 00 00 35 04 06 00 B9 03 EB 7E 5C F6 73 30 B7 A2 53 8E 47 A6 [10:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 80 54 47 00 7D 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 35 30 39 35 10 04 04 00 65 86 00 00 F4 03 04 00 FF A7 73 66 B6 04 01 00 00 D2 90 0C 79 C9 9C CF 4A [10:15:18]CommunicateWithHost err = 0 [10:15:18]CheckOFDResponse [10:15:18]1017 (14) - 77093643461234 [10:15:18]1041 (16) - 0000000000875095 [10:15:18]1040 (4) - 34405 [10:15:18]1012 (4) - 20.06.2024 03:54 [10:15:18]1206 (1) - 0 [10:15:18]OFD Sender: Remove packet 34405 [10:15:18]ProducePacketName [10:15:18]name=ofd_packets/00034405 [10:15:18]NVStorageDeleteData [10:15:18]Write to MH i2c: 01 00 00 BD 04 C1 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 04 0D D9 [10:15:18]RasterBufferAndPrint [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]line [10:15:18]written 0, free lines is 3339 [10:15:18]MH_Cut [10:15:18]Write to MH i2c: D1 01 00 C4 04 01 9A [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 01 00 [10:15:18]MH_I2C_Read... [10:15:18]Read from MH i2c: D1 01 00 C4 04 00 99 [10:15:18]Write to MH i2c: 01 00 00 C5 04 C9 [10:15:18]Write i2c OK [10:15:18]MH_I2C_Read... [10:15:18]OFD Sender: No OFD packet to send [10:15:18]*** Cut start [10:15:18]*** Partial cut [10:15:18]*** CUTSNS_PIN = 1 [10:15:18]*** CUTSNS_PIN = 0 [10:15:19]*** Brake cut motor [10:15:19]Read from MH i2c: 01 [10:15:19]MH_I2C_Read... [10:15:19]*** Stop cut motor [10:15:19]*** Cut end [10:15:19]Read from MH i2c: 01 07 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [10:15:19]process_action close_receipt done [10:15:19]requested_data is exist [10:15:19]produce_requested_data [10:15:19]requested_item fm.sn is exist - process it [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 11 00 00 [10:15:19]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 17 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 99 [10:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:15:19]wFMCommunicate OK [10:15:19]requested_item fd.num is exist - process it [10:15:19]SAM_PROTO_GetFieldsCounters [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 13 00 00 [10:15:19]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 62 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 62 00 C7 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 65 86 00 00 0E 04 04 00 45 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 CF [10:15: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 65 86 00 00 0E 04 04 00 45 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 [10:15:19]wFMCommunicate OK [10:15:19]SAM_PROTO_GetFieldsCounters done [10:15:19]requested_item shift.num is exist - process it [10:15:19]requested_item shift.opened is exist - process it [10:15:19]req_shift_opened [10:15:19]FM_GetShiftState [10:15:19]SAM_PROTO_GetShiftState [10:15:19]wFMCommunicate request_size=4 [10:15:19]MH_SAM_APDU [10:15:19]CAPDU: 80 13 01 00 [10:15:19]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [10:15:19]Write i2c OK [10:15:19]MH_I2C_Read... [10:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:19]Read from MH i2c: E2 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 0E 00 [10:15:19]MH_I2C_Read... [10:15:19]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 61 [10:15:19]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:15:19]wFMCommunicate OK [10:15:19]SAM_PROTO_GetShiftState done [10:15:19]FM_GetShiftState done [10:15:19]req_shift_opened done [10:15:19]requested_item shift.open_date is exist - process it [10:15:19]req_shift_open_date [10:15:19]req_shift_open_date done [10:15:19]produce_requested_data done [10:15:19]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34405,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:15:19]process_action_free close_receipt [10:15:19]json_value_free [10:15:19]json_value_free done [10:15:19]process_json_proto returns [10:15:19]Send response to host [10:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34405,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:15:19]free response buf [10:15:19]execute_script done [10:15:19]execute_script returns [10:15:19]free content buf [10:15:19]Sock 8.Close socket [10:15:19]Sock 8.Thread stoped [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:09]accept exits with 9 [10:16:09]New connection [10:16:09]New thread 3066510692 created [10:16:09]Thread 3066654052 joined [10:16:09]Waiting for new connection... [10:16:09] Sock 9.Parse request [10:16:09]Sock 9.Check first char [10:16:09]Sock 9.First char is OK [10:16:09]request: POST /json_proto HTTP/1.0 [10:16:09]Method: POST [10:16:09]URL: /json_proto [10:16:09]Method is POST - this is cgi request [10:16:09]url: /json_proto [10:16:09]query_string will be loaded in cgi processing [10:16:09]execute_cgi json_proto POST (null) [10:16:09]execute_cgi path=json_proto method=POST [10:16:09]POST find Content-Length [10:16:09]Host: 172.17.38.134:8080 [10:16:09]Content-Length: 645 [10:16:09]Content-Type: application/json [10:16:09] [10:16:09]POST finish read [10:16:09]Found Content-Length = 645 [10:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184179", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:09]execute_script... [10:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184179", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:09]POST & json_proto [10:16:09]process_json_proto [10:16:09]json parsed OK: [10:16:09]protocol is kg_v1.0 [10:16:09]action value=close_receipt [10:16:09]process_action close_receipt [10:16:09]cmd_close_receipt [10:16:09]MH_GetDate [10:16:09]Write to MH i2c: F0 00 00 C9 04 BC [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 09 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: F0 09 00 C9 04 00 6B 01 74 66 13 9C 7C 64 9A [10:16:09]GetLastDocTimeStamp 1718878517 [10:16:09]current date 1718878571 [10:16:09]FM_GetShiftState [10:16:09]SAM_PROTO_GetShiftState [10:16:09]wFMCommunicate request_size=4 [10:16:09]MH_SAM_APDU [10:16:09]CAPDU: 80 13 01 00 [10:16:09]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [10:16:09]Write i2c OK [10:16:09]MH_I2C_Read... [10:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:09]Read from MH i2c: E2 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: E2 0E 00 [10:16:09]MH_I2C_Read... [10:16:09]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 63 [10:16:09]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:16:09]wFMCommunicate OK [10:16:09]SAM_PROTO_GetShiftState done [10:16:09]FM_GetShiftState done [10:16:09]opened in 1718843069 [10:16:09]opened+sec_in_day 1718929469 [10:16:09]quantity*price = 6000 [10:16:09]sum+1 = 6001 [10:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 20.06.2024 10:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34406 ФПД: 49517627105838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101611&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34406&fm=49517627105838&tin=02508201610067®Number=0000000000092786&sum=6000 0 [10:16:11]StoreToDocumentArchive [10:16:11]shift 325 fd 34406 [10:16:11]save to /storage/0325/doc_00034406 [10:16:11]save last doc name /storage/0325/doc_00034406 to /storage/kkm_last_doc_name [10:16:11]save OK [10:16:11]Clear old archive folders... [10:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:16:11]tlvbuf is 001ED410 [10:16:11]SAM_PROTO_ClearQueue [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 09 00 00 [10:16:11]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_ClearQueue done [10:16:11]KKMCreateOFDPacket [10:16:11]OFDProtocolAddRootSTLVToBuf [10:16:11]FM_MakeSignedData [10:16:11]FM_MakeSignedData [10:16:11]SAM_PROTO_SignData [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 01 02 [10:16:11]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=255 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6B 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 [10:16:11]Write to MH i2c: E2 02 01 D9 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6B 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 00 00 33 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=35 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 66 86 00 00 35 04 06 00 2D 09 38 92 E2 2E [10:16:11]Write to MH i2c: E2 26 00 DA 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 66 86 00 00 35 04 06 00 2D 09 38 92 E2 2E 00 00 49 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [10:16:11]RAPDU: 90 00 [10:16:11]wFMCommunicate OK [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 0D 03 02 [10:16:11]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0B 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 0B 00 DB 04 00 B6 82 EE C6 9A 2B C5 3B 90 00 0C [10:16:11]RAPDU: B6 82 EE C6 9A 2B C5 3B 90 00 [10:16:11]wFMCommunicate OK [10:16:11]SAM_PROTO_SignData done [10:16:11]FM_MakeSignedData done [10:16:11]CreateOFDProtocolMessage [10:16:11]wFMCommunicate request_size=4 [10:16:11]MH_SAM_APDU [10:16:11]CAPDU: 80 11 00 00 [10:16:11]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:11]Read from MH i2c: E2 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 17 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AF [10:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:16:11]wFMCommunicate OK [10:16:11]CreateOFDProtocolMessage done [10:16:11]OFDSenderStorePacket 34406 [10:16:11]StoreOFDPacket docnum=34406 [10:16:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 7C 7C 20 01 FC F4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6B 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 66 86 00 00 35 04 06 00 2D 09 38 92 E2 2E B6 82 EE C6 9A 2B C5 3B [10:16:11]CheckFolder [10:16:11]dirname=/storage/ofd_packets [10:16:11]CheckFolder done [10:16:11]ProducePacketName [10:16:11]name=ofd_packets/00034406 [10:16:11]NVStorageSaveData ofd_packets/00034406 [10:16:11]File name is /storage/ofd_packets/00034406 [10:16:11]Write 326 bytes [10:16:11]NVStorageSaveData done [10:16:11]OFDSenderStorePacket done [10:16:11]KKMCreateOFDPacket done [10:16:11]NVStorageSaveData kkm_last_timestamp [10:16:11]File name is /storage/kkm_last_timestamp [10:16:11]Write 4 bytes [10:16:11]NVStorageSaveData done [10:16:11]ExternCall_PrintAddStr [10:16:11]wPrintStart [10:16:11]Write to MH i2c: 01 00 00 DD 04 E1 [10:16:11]Write i2c OK [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 [10:16:11]MH_I2C_Read... [10:16:11]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [10:16:11]RasterBufferAndPrint [10:16:11]line Счет N : (3)184179 [10:16:11]line ИНН: 02508201610067 [10:16:11]line Контрольно-Кассовый Чек [10:16:11]line ПРОДАЖА [10:16:11]line Товар: 4700000310043 [10:16:11]line Вода Жалалабат 27 1л [10:16:11]line 1.000 * 60.00 [10:16:11]line = 60.00 [10:16:11]line НДС 12% НСП 1% [10:16:11]line > о реализуемом товаре [10:16:11]line ИТОГО: 60.00 [10:16:11]line НСП 1% : 0.53 [10:16:11]line НДС 12% : 6.37 [10:16:11]line Наличными: 60.00 [10:16:11]line Безнал.: 0.00 [10:16:11]line Место: АЗС № 120 "Партнер Нефть" [10:16:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:16:11]line СНО: Общий режим [10:16:11]line Чек 16 20.06.2024 10:16 [10:16:11]line Смена: 325 ФФД: 1.0 [10:16:11]line ЗНМ: 0300000172 [10:16:11]line РНМ: 0000000000092786 [10:16:11]line Версия ККМ: 001 [10:16:11]line ФМ: 0000000000875095 [10:16:11]line ФД: 34406 [10:16:11]line ФПД: 49517627105838 [10:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101611&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34406&fm=49517627105838&tin=02508201610067®Number=0000000000092786&sum=6000 [10:16:11]line 0 [10:16:11]OFD Sender: Processing packet 34406 [packets to send 8, broken 7] [10:16:11]ProducePacketName [10:16:11]name=ofd_packets/00034406 [10:16:11]OFD Sender: To server: pG, [10:16:11]CommunicateWithHost lk.salyk.kg:30040 [10:16:11]ConnectInit lk.salyk.kg [10:16:11]written 0, free lines is 4095 [10:16:12]Connected sock=10 [10:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 7C 7C 20 01 FC F4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6B 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 66 86 00 00 35 04 06 00 2D 09 38 92 E2 2E B6 82 EE C6 9A 2B C5 3B [10:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7B 8E 47 00 85 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 66 86 00 00 F4 03 04 00 35 A8 73 66 B6 04 01 00 00 C3 AF 22 C3 5A FC BC 31 [10:16:12]CommunicateWithHost err = 0 [10:16:12]CheckOFDResponse [10:16:12]1017 (14) - 77093643461234 [10:16:12]1041 (16) - 0000000000875095 [10:16:12]1040 (4) - 34406 [10:16:12]1012 (4) - 20.06.2024 03:55 [10:16:12]1206 (1) - 0 [10:16:12]OFD Sender: Remove packet 34406 [10:16:12]ProducePacketName [10:16:12]name=ofd_packets/00034406 [10:16:12]NVStorageDeleteData [10:16:12]Write to MH i2c: 01 00 00 05 05 0A [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 07 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FE 0C 1B [10:16:12]RasterBufferAndPrint [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]line [10:16:12]written 0, free lines is 3332 [10:16:12]MH_Cut [10:16:12]Write to MH i2c: D1 01 00 0C 05 01 E3 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 01 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: D1 01 00 0C 05 00 E2 [10:16:12]Write to MH i2c: 01 00 00 0D 05 12 [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]OFD Sender: No OFD packet to send [10:16:13]*** Cut start [10:16:13]*** Partial cut [10:16:13]*** CUTSNS_PIN = 1 [10:16:13]*** CUTSNS_PIN = 0 [10:16:13]*** Brake cut motor [10:16:13]Read from MH i2c: 01 [10:16:13]MH_I2C_Read... [10:16:13]*** Stop cut motor [10:16:13]*** Cut end [10:16:13]Read from MH i2c: 01 07 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 FF 0F 27 [10:16:13]process_action close_receipt done [10:16:13]requested_data is exist [10:16:13]produce_requested_data [10:16:13]requested_item fm.sn is exist - process it [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 11 00 00 [10:16:13]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 17 00 0E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E2 [10:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:16:13]wFMCommunicate OK [10:16:13]requested_item fd.num is exist - process it [10:16:13]SAM_PROTO_GetFieldsCounters [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 13 00 00 [10:16:13]Write to MH i2c: E2 08 00 0F 05 80 13 00 00 00 00 00 00 90 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 62 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 62 00 0F 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 66 86 00 00 0E 04 04 00 45 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 [10:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 66 86 00 00 0E 04 04 00 45 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 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_GetFieldsCounters done [10:16:13]requested_item shift.num is exist - process it [10:16:13]requested_item shift.opened is exist - process it [10:16:13]req_shift_opened [10:16:13]FM_GetShiftState [10:16:13]SAM_PROTO_GetShiftState [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 13 01 00 [10:16:13]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0E 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AA [10:16:13]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_GetShiftState done [10:16:13]FM_GetShiftState done [10:16:13]req_shift_opened done [10:16:13]requested_item shift.open_date is exist - process it [10:16:13]req_shift_open_date [10:16:13]req_shift_open_date done [10:16:13]produce_requested_data done [10:16:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34406,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:16:13]process_action_free close_receipt [10:16:13]json_value_free [10:16:13]json_value_free done [10:16:13]process_json_proto returns [10:16:13]Send response to host [10:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34406,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:16:13]free response buf [10:16:13]execute_script done [10:16:13]execute_script returns [10:16:13]free content buf [10:16:13]Sock 9.Close socket [10:16:13]Sock 9.Thread stoped [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:35]accept exits with 8 [10:16:35]New connection [10:16:35]New thread 3066654052 created [10:16:35]Thread 3066510692 joined [10:16:35]Waiting for new connection... [10:16:35] Sock 8.Parse request [10:16:35]Sock 8.Check first char [10:16:35]Sock 8.First char is OK [10:16:35]request: POST /json_proto HTTP/1.0 [10:16:35]Method: POST [10:16:35]URL: /json_proto [10:16:35]Method is POST - this is cgi request [10:16:35]url: /json_proto [10:16:35]query_string will be loaded in cgi processing [10:16:35]execute_cgi json_proto POST (null) [10:16:35]execute_cgi path=json_proto method=POST [10:16:35]POST find Content-Length [10:16:35]Host: 172.17.38.134:8080 [10:16:35]Content-Length: 642 [10:16:35]Content-Type: application/json [10:16:35] [10:16:35]POST finish read [10:16:35]Found Content-Length = 642 [10:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184180", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:35]execute_script... [10:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184180", "tax_sys" : 0, "items" : [ { "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:35]POST & json_proto [10:16:35]process_json_proto [10:16:35]json parsed OK: [10:16:35]protocol is kg_v1.0 [10:16:35]action value=close_receipt [10:16:35]process_action close_receipt [10:16:35]cmd_close_receipt [10:16:35]MH_GetDate [10:16:35]Write to MH i2c: F0 00 00 11 05 05 [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 09 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 09 00 11 05 00 84 01 74 66 13 9C 7C 64 FC [10:16:35]GetLastDocTimeStamp 1718878571 [10:16:35]current date 1718878596 [10:16:35]FM_GetShiftState [10:16:35]SAM_PROTO_GetShiftState [10:16:35]wFMCommunicate request_size=4 [10:16:35]MH_SAM_APDU [10:16:35]CAPDU: 80 13 01 00 [10:16:35]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:35]Read from MH i2c: E2 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AC [10:16:35]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:16:35]wFMCommunicate OK [10:16:35]SAM_PROTO_GetShiftState done [10:16:35]FM_GetShiftState done [10:16:35]opened in 1718843069 [10:16:35]opened+sec_in_day 1718929469 [10:16:35]quantity*price = 4500 [10:16:35]sum+1 = 4501 [10:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 17 20.06.2024 10:16 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34407 ФПД: 117674069215518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101637&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34407&fm=117674069215518&tin=02508201610067®Number=0000000000092786&sum=4500 0 [10:16:36]StoreToDocumentArchive [10:16:36]shift 325 fd 34407 [10:16:36]save to /storage/0325/doc_00034407 [10:16:36]save last doc name /storage/0325/doc_00034407 to /storage/kkm_last_doc_name [10:16:36]save OK [10:16:36]Clear old archive folders... [10:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:16:36]tlvbuf is 001ED190 [10:16:36]SAM_PROTO_ClearQueue [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 09 00 00 [10:16:36]Write to MH i2c: E2 08 00 1F 05 80 09 00 00 00 00 00 00 96 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [10:16:36]RAPDU: 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_ClearQueue done [10:16:36]KKMCreateOFDPacket [10:16:36]OFDProtocolAddRootSTLVToBuf [10:16:36]FM_MakeSignedData [10:16:36]FM_MakeSignedData [10:16:36]SAM_PROTO_SignData [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 0D 01 02 [10:16:36]Write to MH i2c: E2 08 00 20 05 80 0D 01 02 00 00 00 00 9E [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [10:16:36]RAPDU: 90 00 [10:16:36]wFMCommunicate OK [10:16:36]wFMCommunicate request_size=255 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 85 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [10:16:36]Write to MH i2c: E2 02 01 21 05 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 85 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 5E [10:16:36]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=32 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 67 86 00 00 35 04 06 00 6B 06 21 18 49 1E [10:16:37]Write to MH i2c: E2 23 00 22 05 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 67 86 00 00 35 04 06 00 6B 06 21 18 49 1E 00 00 FE [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 03 02 [10:16:37]Write to MH i2c: E2 08 00 23 05 80 0D 03 02 00 00 00 00 A3 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 23 05 00 09 4D 94 B9 BC 55 2F 5E 90 00 E5 [10:16:37]RAPDU: 09 4D 94 B9 BC 55 2F 5E 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_SignData done [10:16:37]FM_MakeSignedData done [10:16:37]CreateOFDProtocolMessage [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 11 00 00 [10:16:37]Write to MH i2c: E2 08 00 24 05 80 11 00 00 00 00 00 00 A3 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 24 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F8 [10:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:16:37]wFMCommunicate OK [10:16:37]CreateOFDProtocolMessage done [10:16:37]OFDSenderStorePacket 34407 [10:16:37]StoreOFDPacket docnum=34407 [10:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 AE 9A 1D 01 51 F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 85 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 67 86 00 00 35 04 06 00 6B 06 21 18 49 1E 09 4D 94 B9 BC 55 2F 5E [10:16:37]CheckFolder [10:16:37]dirname=/storage/ofd_packets [10:16:37]CheckFolder done [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00034407 [10:16:37]NVStorageSaveData ofd_packets/00034407 [10:16:37]File name is /storage/ofd_packets/00034407 [10:16:37]Write 323 bytes [10:16:37]NVStorageSaveData done [10:16:37]OFDSenderStorePacket done [10:16:37]KKMCreateOFDPacket done [10:16:37]NVStorageSaveData kkm_last_timestamp [10:16:37]File name is /storage/kkm_last_timestamp [10:16:37]Write 4 bytes [10:16:37]NVStorageSaveData done [10:16:37]ExternCall_PrintAddStr [10:16:37]wPrintStart [10:16:37]Write to MH i2c: 01 00 00 25 05 2A [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 FF 0F 3F [10:16:37]RasterBufferAndPrint [10:16:37]line Счет N : (3)184180 [10:16:37]line ИНН: 02508201610067 [10:16:37]line Контрольно-Кассовый Чек [10:16:37]line ПРОДАЖА [10:16:37]line Товар: 46116482 [10:16:37]line Жев Orbit ягодный микс [10:16:37]line 1.000 * 45.00 [10:16:37]line = 45.00 [10:16:37]line НДС 12% НСП 1% [10:16:37]line > о реализуемом товаре [10:16:37]line ИТОГО: 45.00 [10:16:37]line НСП 1% : 0.40 [10:16:37]line НДС 12% : 4.78 [10:16:37]line Наличными: 45.00 [10:16:37]line Безнал.: 0.00 [10:16:37]line Место: АЗС № 120 "Партнер Нефть" [10:16:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:16:37]line СНО: Общий режим [10:16:37]line Чек 17 20.06.2024 10:16 [10:16:37]line Смена: 325 ФФД: 1.0 [10:16:37]line ЗНМ: 0300000172 [10:16:37]line РНМ: 0000000000092786 [10:16:37]line Версия ККМ: 001 [10:16:37]line ФМ: 0000000000875095 [10:16:37]line ФД: 34407 [10:16:37]line ФПД: 117674069215518 [10:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101637&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34407&fm=117674069215518&tin=02508201610067®Number=0000000000092786&sum=4500 [10:16:37]line 0 [10:16:37]OFD Sender: Processing packet 34407 [packets to send 8, broken 7] [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00034407 [10:16:37]OFD Sender: To server: pG, [10:16:37]CommunicateWithHost lk.salyk.kg:30040 [10:16:37]ConnectInit lk.salyk.kg [10:16:37]written 0, free lines is 4095 [10:16:38]Write to MH i2c: 01 00 00 4D 05 52 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FA 0C 5F [10:16:38]RasterBufferAndPrint [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]written 0, free lines is 3328 [10:16:38]MH_Cut [10:16:38]Write to MH i2c: D1 01 00 54 05 01 2B [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 54 05 00 2A [10:16:38]Write to MH i2c: 01 00 00 55 05 5A [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]*** Cut start [10:16:38]*** Partial cut [10:16:38]*** CUTSNS_PIN = 1 [10:16:38]*** CUTSNS_PIN = 0 [10:16:39]*** Brake cut motor [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]*** Stop cut motor [10:16:39]*** Cut end [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [10:16:39]process_action close_receipt done [10:16:39]requested_data is exist [10:16:39]produce_requested_data [10:16:39]requested_item fm.sn is exist - process it [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 11 00 00 [10:16:39]Write to MH i2c: E2 08 00 56 05 80 11 00 00 00 00 00 00 D5 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 56 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2A [10:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:16:39]wFMCommunicate OK [10:16:39]requested_item fd.num is exist - process it [10:16:39]SAM_PROTO_GetFieldsCounters [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 00 00 [10:16:39]Write to MH i2c: E2 08 00 57 05 80 13 00 00 00 00 00 00 D8 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 57 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 67 86 00 00 0E 04 04 00 45 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 68 [10:16: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 67 86 00 00 0E 04 04 00 45 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 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetFieldsCounters done [10:16:39]requested_item shift.num is exist - process it [10:16:39]requested_item shift.opened is exist - process it [10:16:39]req_shift_opened [10:16:39]FM_GetShiftState [10:16:39]SAM_PROTO_GetShiftState [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 01 00 [10:16:39]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F2 [10:16:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetShiftState done [10:16:39]FM_GetShiftState done [10:16:39]req_shift_opened done [10:16:39]requested_item shift.open_date is exist - process it [10:16:39]req_shift_open_date [10:16:39]req_shift_open_date done [10:16:39]produce_requested_data done [10:16:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34407,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:16:39]process_action_free close_receipt [10:16:39]json_value_free [10:16:39]json_value_free done [10:16:39]process_json_proto returns [10:16:39]Send response to host [10:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34407,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:16:39]free response buf [10:16:39]execute_script done [10:16:39]execute_script returns [10:16:39]free content buf [10:16:39]Sock 8.Close socket [10:16:39]Sock 8.Thread stoped [10:18:51]ConnectInit Can't connect to host [10:18:51]CommunicateWithHost connect error [10:18:51]CommunicateWithHost err = -1 [10:18:51]OFD Sender: Server communicate error [10:18:56]OFD Sender: Processing packet 34407 [packets to send 8, broken 7] [10:18:56]ProducePacketName [10:18:56]name=ofd_packets/00034407 [10:18:56]OFD Sender: To server: pG, [10:18:56]CommunicateWithHost lk.salyk.kg:30040 [10:18:56]ConnectInit lk.salyk.kg [10:18:56]Connected sock=8 [10:18:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 AE 9A 1D 01 51 F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 85 01 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 67 86 00 00 35 04 06 00 6B 06 21 18 49 1E 09 4D 94 B9 BC 55 2F 5E [10:18:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D6 45 47 00 82 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 35 30 39 35 10 04 04 00 67 86 00 00 F4 03 04 00 D9 A8 73 66 B6 04 01 00 00 E4 1A 56 14 05 9C EA 5D [10:18:56]CommunicateWithHost err = 0 [10:18:56]CheckOFDResponse [10:18:56]1017 (14) - 77093643461234 [10:18:56]1041 (16) - 0000000000875095 [10:18:56]1040 (4) - 34407 [10:18:56]1012 (4) - 20.06.2024 03:58 [10:18:56]1206 (1) - 0 [10:18:56]OFD Sender: Remove packet 34407 [10:18:56]ProducePacketName [10:18:56]name=ofd_packets/00034407 [10:18:56]NVStorageDeleteData [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:07]accept exits with 9 [10:19:07]New connection [10:19:07]New thread 3066510692 created [10:19:07]Thread 3066654052 joined [10:19:07]Waiting for new connection... [10:19:07] Sock 9.Parse request [10:19:07]Sock 9.Check first char [10:19:07]Sock 9.First char is OK [10:19:07]request: POST /json_proto HTTP/1.0 [10:19:07]Method: POST [10:19:07]URL: /json_proto [10:19:07]Method is POST - this is cgi request [10:19:07]url: /json_proto [10:19:07]query_string will be loaded in cgi processing [10:19:07]execute_cgi json_proto POST (null) [10:19:07]execute_cgi path=json_proto method=POST [10:19:07]POST find Content-Length [10:19:07]Host: 172.17.38.134:8080 [10:19:07]Content-Length: 1037 [10:19:07]Content-Type: application/json [10:19:07] [10:19:07]POST finish read [10:19:07]Found Content-Length = 1037 [10:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184181", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 188.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:07]execute_script... [10:19:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184181", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 188.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:07]POST & json_proto [10:19:07]process_json_proto [10:19:07]json parsed OK: [10:19:07]protocol is kg_v1.0 [10:19:07]action value=close_receipt [10:19:07]process_action close_receipt [10:19:07]cmd_close_receipt [10:19:07]MH_GetDate [10:19:07]Write to MH i2c: F0 00 00 59 05 4D [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: F0 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: F0 09 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: F0 09 00 59 05 00 1D 02 74 66 13 9C 7C 64 DE [10:19:07]GetLastDocTimeStamp 1718878597 [10:19:07]current date 1718878749 [10:19:07]FM_GetShiftState [10:19:07]SAM_PROTO_GetShiftState [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 13 01 00 [10:19:07]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:08]Read from MH i2c: E2 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: E2 0E 00 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F4 [10:19:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:19:08]wFMCommunicate OK [10:19:08]SAM_PROTO_GetShiftState done [10:19:08]FM_GetShiftState done [10:19:08]opened in 1718843069 [10:19:08]opened+sec_in_day 1718929469 [10:19:08]quantity*price = 11300 [10:19:08]sum+1 = 11301 [10:19:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8690504035503 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 188.00 НСП 1% : 1.66 НДС 12% : 19.96 Наличными: 188.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 20.06.2024 10:19 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34408 ФПД: 146569515708365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101909&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34408&fm=146569515708365&tin=02508201610067®Number=0000000000092786&sum=18800 0 [10:19:09]StoreToDocumentArchive [10:19:09]shift 325 fd 34408 [10:19:09]save to /storage/0325/doc_00034408 [10:19:09]save last doc name /storage/0325/doc_00034408 to /storage/kkm_last_doc_name [10:19:09]save OK [10:19:09]Clear old archive folders... [10:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=437 [10:19:09]tlvbuf is 001F8360 [10:19:09]SAM_PROTO_ClearQueue [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 09 00 00 [10:19:09]Write to MH i2c: E2 08 00 67 05 80 09 00 00 00 00 00 00 DE [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [10:19:09]RAPDU: 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_ClearQueue done [10:19:09]KKMCreateOFDPacket [10:19:09]OFDProtocolAddRootSTLVToBuf [10:19:09]FM_MakeSignedData [10:19:09]FM_MakeSignedData [10:19:09]SAM_PROTO_SignData [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 0D 01 02 [10:19:09]Write to MH i2c: E2 08 00 68 05 80 0D 01 02 00 00 00 00 E6 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [10:19:09]RAPDU: 90 00 [10:19:09]wFMCommunicate OK [10:19:09]wFMCommunicate request_size=255 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 0D 02 02 FA 03 00 B5 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 [10:19:09]Write to MH i2c: E2 02 01 69 05 80 0D 02 02 FA 00 03 00 B5 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 00 A4 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [10:19:09]RAPDU: 90 00 [10:19:09]wFMCommunicate OK [10:19:09]wFMCommunicate request_size=196 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 0D 02 02 BF 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 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1D 02 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 68 86 00 00 35 04 06 00 85 4D DF EB 2F CD [10:19:09]Write to MH i2c: E2 C7 00 6A 05 80 0D 02 02 BF 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 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1D 02 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 68 86 00 00 35 04 06 00 85 4D DF EB 2F CD 00 00 AE [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [10:19:09]RAPDU: 90 00 [10:19:09]wFMCommunicate OK [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 0D 03 02 [10:19:09]Write to MH i2c: E2 08 00 6B 05 80 0D 03 02 00 00 00 00 EB [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0B 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0B 00 6B 05 00 AB E7 1E F0 B0 B4 E2 68 90 00 3A [10:19:09]RAPDU: AB E7 1E F0 B0 B4 E2 68 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_SignData done [10:19:09]FM_MakeSignedData done [10:19:09]CreateOFDProtocolMessage [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 11 00 00 [10:19:09]Write to MH i2c: E2 08 00 6C 05 80 11 00 00 00 00 00 00 EB [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 6C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 40 [10:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:19:09]wFMCommunicate OK [10:19:09]CreateOFDProtocolMessage done [10:19:09]OFDSenderStorePacket 34408 [10:19:09]StoreOFDPacket docnum=34408 [10:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C9 01 00 00 4B D1 C1 01 F7 A9 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1D 02 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 68 86 00 00 35 04 06 00 85 4D DF EB 2F CD AB E7 1E F0 B0 B4 E2 68 [10:19:09]CheckFolder [10:19:09]dirname=/storage/ofd_packets [10:19:09]CheckFolder done [10:19:09]ProducePacketName [10:19:09]name=ofd_packets/00034408 [10:19:09]NVStorageSaveData ofd_packets/00034408 [10:19:09]File name is /storage/ofd_packets/00034408 [10:19:09]Write 487 bytes [10:19:10]NVStorageSaveData done [10:19:10]OFDSenderStorePacket done [10:19:10]KKMCreateOFDPacket done [10:19:10]NVStorageSaveData kkm_last_timestamp [10:19:10]File name is /storage/kkm_last_timestamp [10:19:10]Write 4 bytes [10:19:10]NVStorageSaveData done [10:19:10]ExternCall_PrintAddStr [10:19:10]wPrintStart [10:19:10]Write to MH i2c: 01 00 00 6D 05 72 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 FF 0F 87 [10:19:10]RasterBufferAndPrint [10:19:10]line Счет N : (3)184181 [10:19:10]line ИНН: 02508201610067 [10:19:10]line Контрольно-Кассовый Чек [10:19:10]line ПРОДАЖА [10:19:10]line Товар: 4870202521216 [10:19:10]line Напиток MAXI чай 1,2 зел.лимон (новый) [10:19:10]line 1.000 * 113.00 [10:19:10]line = 113.00 [10:19:10]line НДС 12% НСП 1% [10:19:10]line > о реализуемом товаре [10:19:10]line Товар: 8690504035503 [10:19:10]line Шок батончик ALBENI SUPER Альбени Супер [10:19:10]line 1.000 * 75.00 [10:19:10]line = 75.00 [10:19:10]line НДС 12% НСП 1% [10:19:10]line > о реализуемом товаре [10:19:10]line ИТОГО: 188.00 [10:19:10]line НСП 1% : 1.66 [10:19:10]line НДС 12% : 19.96 [10:19:10]line Наличными: 188.00 [10:19:10]line Безнал.: 0.00 [10:19:10]line Место: АЗС № 120 "Партнер Нефть" [10:19:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:19:10]line СНО: Общий режим [10:19:10]line Чек 18 20.06.2024 10:19 [10:19:10]line Смена: 325 ФФД: 1.0 [10:19:10]line ЗНМ: 0300000172 [10:19:10]line РНМ: 0000000000092786 [10:19:10]line Версия ККМ: 001 [10:19:10]line ФМ: 0000000000875095 [10:19:10]line ФД: 34408 [10:19:10]line ФПД: 146569515708365 [10:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101909&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34408&fm=146569515708365&tin=02508201610067®Number=0000000000092786&sum=18800 [10:19:10]line 0 [10:19:10]written 0, free lines is 4095 [10:19:10]OFD Sender: Processing packet 34408 [packets to send 8, broken 7] [10:19:10]ProducePacketName [10:19:10]name=ofd_packets/00034408 [10:19:10]OFD Sender: To server: pG, [10:19:10]CommunicateWithHost lk.salyk.kg:30040 [10:19:10]ConnectInit lk.salyk.kg [10:19:10]Connected sock=11 [10:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C9 01 00 00 4B D1 C1 01 F7 A9 5A 03 01 00 03 00 B5 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1D 02 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 68 86 00 00 35 04 06 00 85 4D DF EB 2F CD AB E7 1E F0 B0 B4 E2 68 [10:19:10]Write to MH i2c: 01 00 00 9D 05 A2 [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 89 0C 3E [10:19:10]RasterBufferAndPrint [10:19:10]line [10:19:10]line [10:19:10]line [10:19:10]line [10:19:10]line [10:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 21 27 47 00 F3 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 68 86 00 00 F4 03 04 00 E7 A8 73 66 B6 04 01 00 00 CA 3A 46 0F 0F 33 A0 DB [10:19:10]CommunicateWithHost err = 0 [10:19:10]CheckOFDResponse [10:19:10]1017 (14) - 77093643461234 [10:19:10]1041 (16) - 0000000000875095 [10:19:10]1040 (4) - 34408 [10:19:10]1012 (4) - 20.06.2024 03:58 [10:19:10]1206 (1) - 0 [10:19:10]OFD Sender: Remove packet 34408 [10:19:10]ProducePacketName [10:19:10]name=ofd_packets/00034408 [10:19:10]NVStorageDeleteData [10:19:10]written 0, free lines is 3216 [10:19:10]MH_Cut [10:19:10]Write to MH i2c: D1 01 00 A4 05 01 7B [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: D1 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: D1 01 00 [10:19:10]MH_I2C_Read... [10:19:10]Read from MH i2c: D1 01 00 A4 05 00 7A [10:19:10]Write to MH i2c: 01 00 00 A5 05 AA [10:19:10]Write i2c OK [10:19:10]MH_I2C_Read... [10:19:11]OFD Sender: No OFD packet to send [10:19:11]*** Cut start [10:19:11]*** Partial cut [10:19:11]*** CUTSNS_PIN = 1 [10:19:11]*** CUTSNS_PIN = 0 [10:19:11]*** Brake cut motor [10:19:12]Read from MH i2c: 01 [10:19:12]MH_I2C_Read... [10:19:12]*** Stop cut motor [10:19:12]*** Cut end [10:19:12]Read from MH i2c: 01 07 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [10:19:12]process_action close_receipt done [10:19:12]requested_data is exist [10:19:12]produce_requested_data [10:19:12]requested_item fm.sn is exist - process it [10:19:12]wFMCommunicate request_size=4 [10:19:12]MH_SAM_APDU [10:19:12]CAPDU: 80 11 00 00 [10:19:12]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:12]Read from MH i2c: E2 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 17 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7A [10:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:19:12]wFMCommunicate OK [10:19:12]requested_item fd.num is exist - process it [10:19:12]SAM_PROTO_GetFieldsCounters [10:19:12]wFMCommunicate request_size=4 [10:19:12]MH_SAM_APDU [10:19:12]CAPDU: 80 13 00 00 [10:19:12]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:12]Read from MH i2c: E2 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 62 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 62 00 A7 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 68 86 00 00 0E 04 04 00 45 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 BC [10:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 68 86 00 00 0E 04 04 00 45 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 [10:19:12]wFMCommunicate OK [10:19:12]SAM_PROTO_GetFieldsCounters done [10:19:12]requested_item shift.num is exist - process it [10:19:12]requested_item shift.opened is exist - process it [10:19:12]req_shift_opened [10:19:12]FM_GetShiftState [10:19:12]SAM_PROTO_GetShiftState [10:19:12]wFMCommunicate request_size=4 [10:19:12]MH_SAM_APDU [10:19:12]CAPDU: 80 13 01 00 [10:19:12]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [10:19:12]Write i2c OK [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 [10:19:12]MH_I2C_Read... [10:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:12]Read from MH i2c: E2 0E 00 [10:19:12]MH_I2C_Read... [10:19:12]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 42 [10:19:12]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:19:12]wFMCommunicate OK [10:19:12]SAM_PROTO_GetShiftState done [10:19:12]FM_GetShiftState done [10:19:12]req_shift_opened done [10:19:12]requested_item shift.open_date is exist - process it [10:19:12]req_shift_open_date [10:19:12]req_shift_open_date done [10:19:12]produce_requested_data done [10:19:12]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34408,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:19:12]process_action_free close_receipt [10:19:12]json_value_free [10:19:12]json_value_free done [10:19:12]process_json_proto returns [10:19:12]Send response to host [10:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34408,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:19:12]free response buf [10:19:12]execute_script done [10:19:12]execute_script returns [10:19:12]free content buf [10:19:12]Sock 9.Close socket [10:19:12]Sock 9.Thread stoped [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:04]accept exits with 8 [10:27:04]New connection [10:27:04]New thread 3066654052 created [10:27:04]Thread 3066510692 joined [10:27:04]Waiting for new connection... [10:27:04] Sock 8.Parse request [10:27:04]Sock 8.Check first char [10:27:04]Sock 8.First char is OK [10:27:04]request: POST /json_proto HTTP/1.0 [10:27:04]Method: POST [10:27:04]URL: /json_proto [10:27:04]Method is POST - this is cgi request [10:27:04]url: /json_proto [10:27:04]query_string will be loaded in cgi processing [10:27:04]execute_cgi json_proto POST (null) [10:27:04]execute_cgi path=json_proto method=POST [10:27:04]POST find Content-Length [10:27:04]Host: 172.17.38.134:8080 [10:27:04]Content-Length: 1564 [10:27:04]Content-Type: application/json [10:27:04] [10:27:04]POST finish read [10:27:04]Found Content-Length = 1564 [10:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184182", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:04]execute_script... [10:27: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)184182", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:04]POST & json_proto [10:27:04]process_json_proto [10:27:04]json parsed OK: [10:27:04]protocol is kg_v1.0 [10:27:04]action value=close_receipt [10:27:04]process_action close_receipt [10:27:04]cmd_close_receipt [10:27:04]MH_GetDate [10:27:04]Write to MH i2c: F0 00 00 A9 05 9D [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 09 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: F0 09 00 A9 05 00 F9 03 74 66 13 9C 7C 64 0B [10:27:04]GetLastDocTimeStamp 1718878749 [10:27:04]current date 1718879225 [10:27:04]FM_GetShiftState [10:27:04]SAM_PROTO_GetShiftState [10:27:04]wFMCommunicate request_size=4 [10:27:04]MH_SAM_APDU [10:27:04]CAPDU: 80 13 01 00 [10:27:04]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:04]Read from MH i2c: E2 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 44 [10:27:04]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:27:04]wFMCommunicate OK [10:27:04]SAM_PROTO_GetShiftState done [10:27:04]FM_GetShiftState done [10:27:04]opened in 1718843069 [10:27:04]opened+sec_in_day 1718929469 [10:27:04]quantity*price = 12500 [10:27:04]sum+1 = 12501 [10:27:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.00 НСП 1% : 3.14 НДС 12% : 37.70 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 19 20.06.2024 10:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34409 ФПД: 103311392283223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102706&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34409&fm=103311392283223&tin=02508201610067®Number=0000000000092786&sum=35500 0 [10:27:05]StoreToDocumentArchive [10:27:05]shift 325 fd 34409 [10:27:05]save to /storage/0325/doc_00034409 [10:27:05]save last doc name /storage/0325/doc_00034409 to /storage/kkm_last_doc_name [10:27:05]save OK [10:27:05]Clear old archive folders... [10:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=648 [10:27:05]tlvbuf is 001F7E80 [10:27:05]SAM_PROTO_ClearQueue [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 09 00 00 [10:27:05]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 03 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [10:27:05]RAPDU: 90 00 [10:27:05]wFMCommunicate OK [10:27:05]SAM_PROTO_ClearQueue done [10:27:05]KKMCreateOFDPacket [10:27:05]OFDProtocolAddRootSTLVToBuf [10:27:05]FM_MakeSignedData [10:27:05]FM_MakeSignedData [10:27:05]SAM_PROTO_SignData [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 0D 01 02 [10:27:05]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=255 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 FA 03 00 88 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE [10:27:06]Write to MH i2c: E2 02 01 B9 05 80 0D 02 02 FA 00 03 00 88 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE 00 00 E6 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=255 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 FA D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 [10:27:06]Write to MH i2c: E2 02 01 BA 05 80 0D 02 02 FA 00 D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 00 27 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=157 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FA 03 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 69 86 00 00 35 04 06 00 5D F6 0E D6 9A 57 [10:27:06]Write to MH i2c: E2 A0 00 BB 05 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FA 03 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 69 86 00 00 35 04 06 00 5D F6 0E D6 9A 57 00 00 1C [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]OFD Sender: No OFD packet to send [10:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 03 02 [10:27:06]Write to MH i2c: E2 08 00 BC 05 80 0D 03 02 00 00 00 00 3C [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 0B 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 0B 00 BC 05 00 8C B3 02 E9 A9 11 30 0C 90 00 5D [10:27:06]RAPDU: 8C B3 02 E9 A9 11 30 0C 90 00 [10:27:06]wFMCommunicate OK [10:27:06]SAM_PROTO_SignData done [10:27:06]FM_MakeSignedData done [10:27:06]CreateOFDProtocolMessage [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 11 00 00 [10:27:06]Write to MH i2c: E2 08 00 BD 05 80 11 00 00 00 00 00 00 3C [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 17 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 17 00 BD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 91 [10:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:27:06]wFMCommunicate OK [10:27:06]CreateOFDProtocolMessage done [10:27:06]OFDSenderStorePacket 34409 [10:27:06]StoreOFDPacket docnum=34409 [10:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 02 00 00 23 3D 94 02 69 D0 5A 03 01 00 03 00 88 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FA 03 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 69 86 00 00 35 04 06 00 5D F6 0E D6 9A 57 8C B3 02 E9 A9 11 30 0C [10:27:06]CheckFolder [10:27:06]dirname=/storage/ofd_packets [10:27:06]CheckFolder done [10:27:06]ProducePacketName [10:27:06]name=ofd_packets/00034409 [10:27:06]NVStorageSaveData ofd_packets/00034409 [10:27:06]File name is /storage/ofd_packets/00034409 [10:27:06]Write 698 bytes [10:27:06]NVStorageSaveData done [10:27:06]OFDSenderStorePacket done [10:27:06]KKMCreateOFDPacket done [10:27:06]NVStorageSaveData kkm_last_timestamp [10:27:06]File name is /storage/kkm_last_timestamp [10:27:06]Write 4 bytes [10:27:06]NVStorageSaveData done [10:27:06]ExternCall_PrintAddStr [10:27:06]wPrintStart [10:27:06]Write to MH i2c: 01 00 00 BE 05 C3 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 07 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 FF 0F D8 [10:27:06]RasterBufferAndPrint [10:27:06]line Счет N : (3)184182 [10:27:06]line ИНН: 02508201610067 [10:27:06]line Контрольно-Кассовый Чек [10:27:06]line ПРОДАЖА [10:27:06]line Товар: 5449000133328 [10:27:07]line Напиток Кока-Кола Zero 1л [10:27:07]line 1.000 * 125.00 [10:27:07]line = 125.00 [10:27:07]line НДС 12% НСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line Товар: 4700000160358 [10:27:07]line Вода Легенда 1л [10:27:07]line 1.000 * 50.00 [10:27:07]line = 50.00 [10:27:07]line НДС 12% НСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line Товар: 4870001571030 [10:27:07]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [10:27:07]line 1.000 * 85.00 [10:27:07]line = 85.00 [10:27:07]line НДС 12% НСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line Товар: 4700000480302 [10:27:07]line Напиток энерг Nitro манго-клуб 0.45 ж/б [10:27:07]line 1.000 * 95.00 [10:27:07]line = 95.00 [10:27:07]line НДС 12% НСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line ИТОГО: 355.00 [10:27:07]line НСП 1% : 3.14 [10:27:07]line НДС 12% : 37.70 [10:27:07]line Наличными: 355.00 [10:27:07]line Безнал.: 0.00 [10:27:07]line Место: АЗС № 120 "Партнер Нефть" [10:27:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:27:07]line СНО: Общий режим [10:27:07]line Чек 19 20.06.2024 10:27 [10:27:07]line Смена: 325 ФФД: 1.0 [10:27:07]line ЗНМ: 0300000172 [10:27:07]line РНМ: 0000000000092786 [10:27:07]line Версия ККМ: 001 [10:27:07]line ФМ: 0000000000875095 [10:27:07]line ФД: 34409 [10:27:07]line ФПД: 103311392283223 [10:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102706&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34409&fm=103311392283223&tin=02508201610067®Number=0000000000092786&sum=35500 [10:27:07]line 0 [10:27:07]OFD Sender: Processing packet 34409 [packets to send 8, broken 7] [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00034409 [10:27:07]OFD Sender: To server: pG, [10:27:07]CommunicateWithHost lk.salyk.kg:30040 [10:27:07]ConnectInit lk.salyk.kg [10:27:07]written 0, free lines is 4095 [10:27:07]Connected sock=10 [10:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 02 00 00 23 3D 94 02 69 D0 5A 03 01 00 03 00 88 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FA 03 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 69 86 00 00 35 04 06 00 5D F6 0E D6 9A 57 8C B3 02 E9 A9 11 30 0C [10:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F9 0C 47 00 EC 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 35 30 39 35 10 04 04 00 69 86 00 00 F4 03 04 00 C4 AA 73 66 B6 04 01 00 00 CB 5D DF BA 26 E4 22 36 [10:27:07]CommunicateWithHost err = 0 [10:27:07]CheckOFDResponse [10:27:07]1017 (14) - 77093643461234 [10:27:07]1041 (16) - 0000000000875095 [10:27:07]1040 (4) - 34409 [10:27:07]1012 (4) - 20.06.2024 04:06 [10:27:07]1206 (1) - 0 [10:27:07]OFD Sender: Remove packet 34409 [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00034409 [10:27:07]NVStorageDeleteData [10:27:07]Write to MH i2c: 01 00 00 FA 05 FF [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 E1 0B F2 [10:27:07]RasterBufferAndPrint [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]line [10:27:07]written 0, free lines is 3048 [10:27:07]MH_Cut [10:27:07]Write to MH i2c: D1 01 00 01 06 01 D9 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 01 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: D1 01 00 01 06 00 D8 [10:27:07]Write to MH i2c: 01 00 00 02 06 08 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:08]OFD Sender: No OFD packet to send [10:27:08]*** Cut start [10:27:08]*** Partial cut [10:27:08]*** CUTSNS_PIN = 1 [10:27:08]*** CUTSNS_PIN = 0 [10:27:09]*** Brake cut motor [10:27:09]Read from MH i2c: 01 [10:27:09]MH_I2C_Read... [10:27:09]*** Stop cut motor [10:27:09]*** Cut end [10:27:09]Read from MH i2c: 01 07 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [10:27:09]process_action close_receipt done [10:27:09]requested_data is exist [10:27:09]produce_requested_data [10:27:09]requested_item fm.sn is exist - process it [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 11 00 00 [10:27:09]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 17 00 [10:27:09]MH_I2C_Read... [10:27:09]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 35 30 39 35 90 00 D8 [10:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:27:09]wFMCommunicate OK [10:27:09]requested_item fd.num is exist - process it [10:27:09]SAM_PROTO_GetFieldsCounters [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 13 00 00 [10:27:09]Write to MH i2c: E2 08 00 04 06 80 13 00 00 00 00 00 00 86 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 62 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 62 00 04 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 69 86 00 00 0E 04 04 00 45 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 1E [10:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 69 86 00 00 0E 04 04 00 45 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 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_GetFieldsCounters done [10:27:09]requested_item shift.num is exist - process it [10:27:09]requested_item shift.opened is exist - process it [10:27:09]req_shift_opened [10:27:09]FM_GetShiftState [10:27:09]SAM_PROTO_GetShiftState [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 13 01 00 [10:27:09]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A0 [10:27:09]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_GetShiftState done [10:27:09]FM_GetShiftState done [10:27:09]req_shift_opened done [10:27:09]requested_item shift.open_date is exist - process it [10:27:09]req_shift_open_date [10:27:09]req_shift_open_date done [10:27:09]produce_requested_data done [10:27:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34409,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:27:09]process_action_free close_receipt [10:27:09]json_value_free [10:27:09]json_value_free done [10:27:09]process_json_proto returns [10:27:09]Send response to host [10:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34409,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:27:09]free response buf [10:27:09]execute_script done [10:27:09]execute_script returns [10:27:09]free content buf [10:27:09]Sock 8.Close socket [10:27:09]Sock 8.Thread stoped [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:28]accept exits with 9 [10:27:28]New connection [10:27:28]New thread 3066510692 created [10:27:28]Thread 3066654052 joined [10:27:28]Waiting for new connection... [10:27:28] Sock 9.Parse request [10:27:28]Sock 9.Check first char [10:27:28]Sock 9.First char is OK [10:27:28]request: POST /json_proto HTTP/1.0 [10:27:28]Method: POST [10:27:28]URL: /json_proto [10:27:28]Method is POST - this is cgi request [10:27:28]url: /json_proto [10:27:28]query_string will be loaded in cgi processing [10:27:28]execute_cgi json_proto POST (null) [10:27:28]execute_cgi path=json_proto method=POST [10:27:28]POST find Content-Length [10:27:28]Host: 172.17.38.134:8080 [10:27:28]Content-Length: 673 [10:27:28]Content-Type: application/json [10:27:28] [10:27:28]POST finish read [10:27:28]Found Content-Length = 673 [10:27:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184183", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:28]execute_script... [10:27: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)184183", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:28]POST & json_proto [10:27:28]process_json_proto [10:27:28]json parsed OK: [10:27:28]protocol is kg_v1.0 [10:27:28]action value=close_receipt [10:27:28]process_action close_receipt [10:27:28]cmd_close_receipt [10:27:28]MH_GetDate [10:27:28]Write to MH i2c: F0 00 00 06 06 FB [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: F0 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: F0 09 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: F0 09 00 06 06 00 12 04 74 66 13 9C 7C 64 83 [10:27:28]GetLastDocTimeStamp 1718879226 [10:27:28]current date 1718879250 [10:27:28]FM_GetShiftState [10:27:28]SAM_PROTO_GetShiftState [10:27:28]wFMCommunicate request_size=4 [10:27:28]MH_SAM_APDU [10:27:28]CAPDU: 80 13 01 00 [10:27:28]Write to MH i2c: E2 08 00 07 06 80 13 01 00 00 00 00 00 8A [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:28]Read from MH i2c: E2 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 0E 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 0E 00 07 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A2 [10:27:28]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:27:28]wFMCommunicate OK [10:27:28]SAM_PROTO_GetShiftState done [10:27:28]FM_GetShiftState done [10:27:28]opened in 1718843069 [10:27:28]opened+sec_in_day 1718929469 [10:27:28]quantity*price = 700 [10:27:28]sum+1 = 701 [10:27:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 20.06.2024 10:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34410 ФПД: 78935265792364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102730&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34410&fm=78935265792364&tin=02508201610067®Number=0000000000092786&sum=700 0 [10:27:29]StoreToDocumentArchive [10:27:29]shift 325 fd 34410 [10:27:29]save to /storage/0325/doc_00034410 [10:27:29]save last doc name /storage/0325/doc_00034410 to /storage/kkm_last_doc_name [10:27:29]save OK [10:27:29]Clear old archive folders... [10:27:29]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:27:29]tlvbuf is 001E7770 [10:27:29]SAM_PROTO_ClearQueue [10:27:29]wFMCommunicate request_size=4 [10:27:29]MH_SAM_APDU [10:27:29]CAPDU: 80 09 00 00 [10:27:29]Write to MH i2c: E2 08 00 14 06 80 09 00 00 00 00 00 00 8C [10:27:29]Write i2c OK [10:27:29]MH_I2C_Read... [10:27:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:29]Read from MH i2c: E2 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 03 00 [10:27:29]MH_I2C_Read... [10:27:29]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [10:27:29]RAPDU: 90 00 [10:27:29]wFMCommunicate OK [10:27:29]SAM_PROTO_ClearQueue done [10:27:29]KKMCreateOFDPacket [10:27:29]OFDProtocolAddRootSTLVToBuf [10:27:29]FM_MakeSignedData [10:27:29]FM_MakeSignedData [10:27:29]SAM_PROTO_SignData [10:27:29]wFMCommunicate request_size=4 [10:27:29]MH_SAM_APDU [10:27:29]CAPDU: 80 0D 01 02 [10:27:29]Write to MH i2c: E2 08 00 15 06 80 0D 01 02 00 00 00 00 94 [10:27:29]Write i2c OK [10:27:29]MH_I2C_Read... [10:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:30]Read from MH i2c: E2 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [10:27:30]RAPDU: 90 00 [10:27:30]wFMCommunicate OK [10:27:30]wFMCommunicate request_size=255 [10:27:30]MH_SAM_APDU [10:27:30]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 04 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [10:27:30]Write to MH i2c: E2 02 01 16 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 04 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 1A [10:27:30]Write i2c OK [10:27:30]MH_I2C_Read... [10:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:30]Read from MH i2c: E2 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [10:27:30]RAPDU: 90 00 [10:27:30]wFMCommunicate OK [10:27:30]wFMCommunicate request_size=46 [10:27:30]MH_SAM_APDU [10:27:30]CAPDU: 80 0D 02 02 29 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6A 86 00 00 35 04 06 00 47 CA 8C 7A 51 6C [10:27:30]Write to MH i2c: E2 31 00 17 06 80 0D 02 02 29 00 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6A 86 00 00 35 04 06 00 47 CA 8C 7A 51 6C 00 00 F0 [10:27:30]Write i2c OK [10:27:30]MH_I2C_Read... [10:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:30]Read from MH i2c: E2 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [10:27:30]RAPDU: 90 00 [10:27:30]wFMCommunicate OK [10:27:30]wFMCommunicate request_size=4 [10:27:30]MH_SAM_APDU [10:27:30]CAPDU: 80 0D 03 02 [10:27:30]Write to MH i2c: E2 08 00 18 06 80 0D 03 02 00 00 00 00 99 [10:27:30]Write i2c OK [10:27:30]MH_I2C_Read... [10:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:30]Read from MH i2c: E2 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 0B 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 0B 00 18 06 00 28 34 37 DA C8 0A 01 47 90 00 21 [10:27:30]RAPDU: 28 34 37 DA C8 0A 01 47 90 00 [10:27:30]wFMCommunicate OK [10:27:30]SAM_PROTO_SignData done [10:27:30]FM_MakeSignedData done [10:27:30]CreateOFDProtocolMessage [10:27:30]wFMCommunicate request_size=4 [10:27:30]MH_SAM_APDU [10:27:30]CAPDU: 80 11 00 00 [10:27:30]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [10:27:30]Write i2c OK [10:27:30]MH_I2C_Read... [10:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:30]Read from MH i2c: E2 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 17 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EE [10:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:27:30]wFMCommunicate OK [10:27:30]CreateOFDProtocolMessage done [10:27:30]OFDSenderStorePacket 34410 [10:27:30]StoreOFDPacket docnum=34410 [10:27:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 39 11 2B 01 9B FE 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 04 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6A 86 00 00 35 04 06 00 47 CA 8C 7A 51 6C 28 34 37 DA C8 0A 01 47 [10:27:30]CheckFolder [10:27:30]dirname=/storage/ofd_packets [10:27:30]CheckFolder done [10:27:30]ProducePacketName [10:27:30]name=ofd_packets/00034410 [10:27:30]NVStorageSaveData ofd_packets/00034410 [10:27:30]File name is /storage/ofd_packets/00034410 [10:27:30]Write 337 bytes [10:27:30]NVStorageSaveData done [10:27:30]OFDSenderStorePacket done [10:27:30]KKMCreateOFDPacket done [10:27:30]NVStorageSaveData kkm_last_timestamp [10:27:30]File name is /storage/kkm_last_timestamp [10:27:30]Write 4 bytes [10:27:30]NVStorageSaveData done [10:27:30]ExternCall_PrintAddStr [10:27:30]wPrintStart [10:27:30]Write to MH i2c: 01 00 00 1A 06 20 [10:27:30]Write i2c OK [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: 01 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: 01 07 00 [10:27:30]MH_I2C_Read... [10:27:30]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [10:27:30]RasterBufferAndPrint [10:27:30]line Счет N : (3)184183 [10:27:30]line ИНН: 02508201610067 [10:27:30]line Контрольно-Кассовый Чек [10:27:30]line ПРОДАЖА [10:27:30]line Товар: 2000053020015 [10:27:30]line Бумажные стаканы 250мл 1шт [10:27:30]line 1.000 * 7.00 [10:27:30]line = 7.00 [10:27:30]line НДС 12% НСП 1% [10:27:30]line > о реализуемом товаре [10:27:30]line ИТОГО: 7.00 [10:27:30]line НСП 1% : 0.06 [10:27:30]line НДС 12% : 0.74 [10:27:30]line Наличными: 7.00 [10:27:30]line Безнал.: 0.00 [10:27:30]line Место: АЗС № 120 "Партнер Нефть" [10:27:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:27:30]line СНО: Общий режим [10:27:30]line Чек 20 20.06.2024 10:27 [10:27:30]line Смена: 325 ФФД: 1.0 [10:27:30]line ЗНМ: 0300000172 [10:27:30]line РНМ: 0000000000092786 [10:27:30]line Версия ККМ: 001 [10:27:30]line ФМ: 0000000000875095 [10:27:30]line ФД: 34410 [10:27:30]line ФПД: 78935265792364 [10:27:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102730&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34410&fm=78935265792364&tin=02508201610067®Number=0000000000092786&sum=700 [10:27:30]line 0 [10:27:30]OFD Sender: Processing packet 34410 [packets to send 8, broken 7] [10:27:30]ProducePacketName [10:27:30]name=ofd_packets/00034410 [10:27:30]OFD Sender: To server: pG, [10:27:30]CommunicateWithHost lk.salyk.kg:30040 [10:27:30]ConnectInit lk.salyk.kg [10:27:30]written 0, free lines is 4095 [10:27:30]Connected sock=10 [10:27:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 39 11 2B 01 9B FE 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 04 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6A 86 00 00 35 04 06 00 47 CA 8C 7A 51 6C 28 34 37 DA C8 0A 01 47 [10:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A5 9C 47 00 9A 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 35 30 39 35 10 04 04 00 6A 86 00 00 F4 03 04 00 DC AA 73 66 B6 04 01 00 00 2E 69 CB FA 70 24 AD D1 [10:27:31]CommunicateWithHost err = 0 [10:27:31]CheckOFDResponse [10:27:31]1017 (14) - 77093643461234 [10:27:31]1041 (16) - 0000000000875095 [10:27:31]1040 (4) - 34410 [10:27:31]1012 (4) - 20.06.2024 04:06 [10:27:31]1206 (1) - 0 [10:27:31]OFD Sender: Remove packet 34410 [10:27:31]ProducePacketName [10:27:31]name=ofd_packets/00034410 [10:27:31]NVStorageDeleteData [10:27:31]Write to MH i2c: 01 00 00 43 06 49 [10:27:31]Write i2c OK [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: 01 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: 01 07 00 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 E0 0C 3C [10:27:31]RasterBufferAndPrint [10:27:31]line [10:27:31]line [10:27:31]line [10:27:31]line [10:27:31]line [10:27:31]written 0, free lines is 3305 [10:27:31]MH_Cut [10:27:31]Write to MH i2c: D1 01 00 4A 06 01 22 [10:27:31]Write i2c OK [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: D1 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: D1 01 00 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: D1 01 00 4A 06 00 21 [10:27:31]Write to MH i2c: 01 00 00 4B 06 51 [10:27:31]Write i2c OK [10:27:31]MH_I2C_Read... [10:27:31]OFD Sender: No OFD packet to send [10:27:32]*** Cut start [10:27:32]*** Partial cut [10:27:32]*** CUTSNS_PIN = 1 [10:27:32]*** CUTSNS_PIN = 0 [10:27:32]*** Brake cut motor [10:27:32]Read from MH i2c: 01 [10:27:32]MH_I2C_Read... [10:27:32]*** Stop cut motor [10:27:32]*** Cut end [10:27:32]Read from MH i2c: 01 07 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [10:27:32]process_action close_receipt done [10:27:32]requested_data is exist [10:27:32]produce_requested_data [10:27:32]requested_item fm.sn is exist - process it [10:27:32]wFMCommunicate request_size=4 [10:27:32]MH_SAM_APDU [10:27:32]CAPDU: 80 11 00 00 [10:27:32]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:32]Read from MH i2c: E2 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 17 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 21 [10:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:27:32]wFMCommunicate OK [10:27:32]requested_item fd.num is exist - process it [10:27:32]SAM_PROTO_GetFieldsCounters [10:27:32]wFMCommunicate request_size=4 [10:27:32]MH_SAM_APDU [10:27:32]CAPDU: 80 13 00 00 [10:27:32]Write to MH i2c: E2 08 00 4D 06 80 13 00 00 00 00 00 00 CF [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:32]Read from MH i2c: E2 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 62 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 62 00 4D 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6A 86 00 00 0E 04 04 00 45 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 6B [10:27: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6A 86 00 00 0E 04 04 00 45 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 [10:27:32]wFMCommunicate OK [10:27:32]SAM_PROTO_GetFieldsCounters done [10:27:32]requested_item shift.num is exist - process it [10:27:32]requested_item shift.opened is exist - process it [10:27:32]req_shift_opened [10:27:32]FM_GetShiftState [10:27:32]SAM_PROTO_GetShiftState [10:27:32]wFMCommunicate request_size=4 [10:27:32]MH_SAM_APDU [10:27:32]CAPDU: 80 13 01 00 [10:27:32]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:32]Read from MH i2c: E2 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 0E 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E9 [10:27:32]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:27:32]wFMCommunicate OK [10:27:32]SAM_PROTO_GetShiftState done [10:27:32]FM_GetShiftState done [10:27:32]req_shift_opened done [10:27:32]requested_item shift.open_date is exist - process it [10:27:32]req_shift_open_date [10:27:32]req_shift_open_date done [10:27:32]produce_requested_data done [10:27:32]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34410,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:27:32]process_action_free close_receipt [10:27:32]json_value_free [10:27:32]json_value_free done [10:27:32]process_json_proto returns [10:27:32]Send response to host [10:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34410,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:27:32]free response buf [10:27:32]execute_script done [10:27:32]execute_script returns [10:27:32]free content buf [10:27:32]Sock 9.Close socket [10:27:32]Sock 9.Thread stoped [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:31:58]accept exits with 8 [10:31:58]New connection [10:31:58]New thread 3066654052 created [10:31:58]Thread 3066510692 joined [10:31:58]Waiting for new connection... [10:31:58] Sock 8.Parse request [10:31:58]Sock 8.Check first char [10:31:58]Sock 8.First char is OK [10:31:58]request: POST /json_proto HTTP/1.0 [10:31:58]Method: POST [10:31:58]URL: /json_proto [10:31:58]Method is POST - this is cgi request [10:31:58]url: /json_proto [10:31:58]query_string will be loaded in cgi processing [10:31:58]execute_cgi json_proto POST (null) [10:31:58]execute_cgi path=json_proto method=POST [10:31:58]POST find Content-Length [10:31:58]Host: 172.17.38.134:8080 [10:31:58]Content-Length: 668 [10:31:58]Content-Type: application/json [10:31:58] [10:31:58]POST finish read [10:31:58]Found Content-Length = 668 [10:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184184", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:58]execute_script... [10:31:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184184", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:58]POST & json_proto [10:31:58]process_json_proto [10:31:58]json parsed OK: [10:31:58]protocol is kg_v1.0 [10:31:58]action value=close_receipt [10:31:58]process_action close_receipt [10:31:58]cmd_close_receipt [10:31:58]MH_GetDate [10:31:58]Write to MH i2c: F0 00 00 4F 06 44 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 09 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 09 00 4F 06 00 20 05 74 66 13 9C 7C 64 DB [10:31:58]GetLastDocTimeStamp 1718879250 [10:31:58]current date 1718879520 [10:31:58]FM_GetShiftState [10:31:58]SAM_PROTO_GetShiftState [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 13 01 00 [10:31:58]Write to MH i2c: E2 08 00 50 06 80 13 01 00 00 00 00 00 D3 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 50 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EB [10:31:58]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_GetShiftState done [10:31:58]FM_GetShiftState done [10:31:58]opened in 1718843069 [10:31:58]opened+sec_in_day 1718929469 [10:31:58]quantity*price = 22500 [10:31:58]sum+1 = 22501 [10:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 21 20.06.2024 10:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34411 ФПД: 227444217338916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103200&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34411&fm=227444217338916&tin=02508201610067®Number=0000000000092786&sum=22500 0 [10:31:59]StoreToDocumentArchive [10:31:59]shift 325 fd 34411 [10:31:59]save to /storage/0325/doc_00034411 [10:31:59]save last doc name /storage/0325/doc_00034411 to /storage/kkm_last_doc_name [10:31:59]save OK [10:31:59]Clear old archive folders... [10:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=296 [10:31:59]tlvbuf is 0020FC30 [10:31:59]SAM_PROTO_ClearQueue [10:31:59]wFMCommunicate request_size=4 [10:31:59]MH_SAM_APDU [10:31:59]CAPDU: 80 09 00 00 [10:31:59]Write to MH i2c: E2 08 00 5D 06 80 09 00 00 00 00 00 00 D5 [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [10:32:00]RAPDU: 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_ClearQueue done [10:32:00]KKMCreateOFDPacket [10:32:00]OFDProtocolAddRootSTLVToBuf [10:32:00]FM_MakeSignedData [10:32:00]FM_MakeSignedData [10:32:00]SAM_PROTO_SignData [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 0D 01 02 [10:32:00]Write to MH i2c: E2 08 00 5E 06 80 0D 01 02 00 00 00 00 DD [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [10:32:00]RAPDU: 90 00 [10:32:00]wFMCommunicate OK [10:32:00]wFMCommunicate request_size=255 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 20 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [10:32:00]Write to MH i2c: E2 02 01 5F 06 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 20 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 BF [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [10:32:00]RAPDU: 90 00 [10:32:00]wFMCommunicate OK [10:32:00]wFMCommunicate request_size=55 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6B 86 00 00 35 04 06 00 CE DB FB C7 DC 24 [10:32:00]Write to MH i2c: E2 3A 00 60 06 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6B 86 00 00 35 04 06 00 CE DB FB C7 DC 24 00 00 9E [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [10:32:00]RAPDU: 90 00 [10:32:00]wFMCommunicate OK [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 0D 03 02 [10:32:00]Write to MH i2c: E2 08 00 61 06 80 0D 03 02 00 00 00 00 E2 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0B 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0B 00 61 06 00 5D 84 6B 73 0E 4C 78 BF 90 00 33 [10:32:00]RAPDU: 5D 84 6B 73 0E 4C 78 BF 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_SignData done [10:32:00]FM_MakeSignedData done [10:32:00]CreateOFDProtocolMessage [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 11 00 00 [10:32:00]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 37 [10:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:32:00]wFMCommunicate OK [10:32:00]CreateOFDProtocolMessage done [10:32:00]OFDSenderStorePacket 34411 [10:32:00]StoreOFDPacket docnum=34411 [10:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 F2 A1 34 01 E2 23 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 20 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6B 86 00 00 35 04 06 00 CE DB FB C7 DC 24 5D 84 6B 73 0E 4C 78 BF [10:32:00]CheckFolder [10:32:00]dirname=/storage/ofd_packets [10:32:00]CheckFolder done [10:32:00]ProducePacketName [10:32:00]name=ofd_packets/00034411 [10:32:00]NVStorageSaveData ofd_packets/00034411 [10:32:00]File name is /storage/ofd_packets/00034411 [10:32:00]Write 346 bytes [10:32:00]NVStorageSaveData done [10:32:00]OFDSenderStorePacket done [10:32:00]KKMCreateOFDPacket done [10:32:00]NVStorageSaveData kkm_last_timestamp [10:32:00]File name is /storage/kkm_last_timestamp [10:32:00]Write 4 bytes [10:32:00]NVStorageSaveData done [10:32:00]ExternCall_PrintAddStr [10:32:00]wPrintStart [10:32:00]Write to MH i2c: 01 00 00 63 06 69 [10:32:00]OFD Sender: Processing packet 34411 [packets to send 8, broken 7] [10:32:00]ProducePacketName [10:32:00]name=ofd_packets/00034411 [10:32:00]OFD Sender: To server: pG, [10:32:00]CommunicateWithHost lk.salyk.kg:30040 [10:32:00]ConnectInit lk.salyk.kg [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [10:32:00]RasterBufferAndPrint [10:32:00]line Счет N : (3)184184 [10:32:00]line ИНН: 02508201610067 [10:32:00]line Контрольно-Кассовый Чек [10:32:00]line ПРОДАЖА [10:32:00]line Товар: 4670003190037 [10:32:00]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [10:32:00]line 1.000 * 225.00 [10:32:00]line = 225.00 [10:32:00]line НДС 12% НСП 1% [10:32:00]line > о реализуемом товаре [10:32:00]line ИТОГО: 225.00 [10:32:00]line НСП 1% : 1.99 [10:32:00]line НДС 12% : 23.89 [10:32:00]line Наличными: 225.00 [10:32:00]line Безнал.: 0.00 [10:32:00]line Место: АЗС № 120 "Партнер Нефть" [10:32:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:32:00]line СНО: Общий режим [10:32:00]line Чек 21 20.06.2024 10:32 [10:32:00]line Смена: 325 ФФД: 1.0 [10:32:00]line ЗНМ: 0300000172 [10:32:00]line РНМ: 0000000000092786 [10:32:00]line Версия ККМ: 001 [10:32:00]line ФМ: 0000000000875095 [10:32:00]line ФД: 34411 [10:32:00]line ФПД: 227444217338916 [10:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103200&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34411&fm=227444217338916&tin=02508201610067®Number=0000000000092786&sum=22500 [10:32:00]line 0 [10:32:00]Connected sock=10 [10:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 F2 A1 34 01 E2 23 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 20 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6B 86 00 00 35 04 06 00 CE DB FB C7 DC 24 5D 84 6B 73 0E 4C 78 BF [10:32:00]written 0, free lines is 4095 [10:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 9D CB 47 00 93 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6B 86 00 00 F4 03 04 00 EA AB 73 66 B6 04 01 00 00 CD AF EB 51 2F B7 31 B4 [10:32:01]CommunicateWithHost err = 0 [10:32:01]CheckOFDResponse [10:32:01]1017 (14) - 77093643461234 [10:32:01]1041 (16) - 0000000000875095 [10:32:01]1040 (4) - 34411 [10:32:01]1012 (4) - 20.06.2024 04:11 [10:32:01]1206 (1) - 0 [10:32:01]OFD Sender: Remove packet 34411 [10:32:01]ProducePacketName [10:32:01]name=ofd_packets/00034411 [10:32:01]NVStorageDeleteData [10:32:01]Write to MH i2c: 01 00 00 8C 06 92 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: 01 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: 01 07 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 F0 0C 95 [10:32:01]RasterBufferAndPrint [10:32:01]line [10:32:01]line [10:32:01]line [10:32:01]line [10:32:01]line [10:32:01]written 0, free lines is 3318 [10:32:01]MH_Cut [10:32:01]Write to MH i2c: D1 01 00 93 06 01 6B [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: D1 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: D1 01 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: D1 01 00 93 06 00 6A [10:32:01]Write to MH i2c: 01 00 00 94 06 9A [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]OFD Sender: No OFD packet to send [10:32:02]*** Cut start [10:32:02]*** Partial cut [10:32:02]*** CUTSNS_PIN = 1 [10:32:02]*** CUTSNS_PIN = 0 [10:32:02]*** Brake cut motor [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]*** Stop cut motor [10:32:02]*** Cut end [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [10:32:02]process_action close_receipt done [10:32:02]requested_data is exist [10:32:02]produce_requested_data [10:32:02]requested_item fm.sn is exist - process it [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 95 06 80 11 00 00 00 00 00 00 15 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 95 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6A [10:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:32:02]wFMCommunicate OK [10:32:02]requested_item fd.num is exist - process it [10:32:02]SAM_PROTO_GetFieldsCounters [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 13 00 00 [10:32:02]Write to MH i2c: E2 08 00 96 06 80 13 00 00 00 00 00 00 18 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 62 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 62 00 96 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6B 86 00 00 0E 04 04 00 45 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 B8 [10:32: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6B 86 00 00 0E 04 04 00 45 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 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_GetFieldsCounters done [10:32:02]requested_item shift.num is exist - process it [10:32:02]requested_item shift.opened is exist - process it [10:32:02]req_shift_opened [10:32:02]FM_GetShiftState [10:32:02]SAM_PROTO_GetShiftState [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 13 01 00 [10:32:02]Write to MH i2c: E2 08 00 97 06 80 13 01 00 00 00 00 00 1A [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:02]Read from MH i2c: E2 0E 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0E 00 97 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 32 [10:32:02]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_GetShiftState done [10:32:02]FM_GetShiftState done [10:32:02]req_shift_opened done [10:32:02]requested_item shift.open_date is exist - process it [10:32:02]req_shift_open_date [10:32:02]req_shift_open_date done [10:32:02]produce_requested_data done [10:32:02]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34411,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:32:02]process_action_free close_receipt [10:32:02]json_value_free [10:32:02]json_value_free done [10:32:02]process_json_proto returns [10:32:02]Send response to host [10:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34411,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:32:02]free response buf [10:32:02]execute_script done [10:32:02]execute_script returns [10:32:02]free content buf [10:32:02]Sock 8.Close socket [10:32:02]Sock 8.Thread stoped [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:04]accept exits with 9 [10:34:04]New connection [10:34:04]New thread 3066510692 created [10:34:04]Thread 3066654052 joined [10:34:04]Waiting for new connection... [10:34:04] Sock 9.Parse request [10:34:04]Sock 9.Check first char [10:34:04]Sock 9.First char is OK [10:34:04]request: POST /json_proto HTTP/1.0 [10:34:04]Method: POST [10:34:04]URL: /json_proto [10:34:04]Method is POST - this is cgi request [10:34:04]url: /json_proto [10:34:04]query_string will be loaded in cgi processing [10:34:04]execute_cgi json_proto POST (null) [10:34:04]execute_cgi path=json_proto method=POST [10:34:04]POST find Content-Length [10:34:04]Host: 172.17.38.134:8080 [10:34:04]Content-Length: 629 [10:34:04]Content-Type: application/json [10:34:04] [10:34:04]POST finish read [10:34:04]Found Content-Length = 629 [10:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184185", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:04]execute_script... [10:34: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)184185", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:04]POST & json_proto [10:34:04]process_json_proto [10:34:04]json parsed OK: [10:34:04]protocol is kg_v1.0 [10:34:04]action value=close_receipt [10:34:04]process_action close_receipt [10:34:04]cmd_close_receipt [10:34:04]MH_GetDate [10:34:04]Write to MH i2c: F0 00 00 98 06 8D [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 09 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 09 00 98 06 00 9E 05 74 66 13 9C 7C 64 A2 [10:34:04]GetLastDocTimeStamp 1718879520 [10:34:04]current date 1718879646 [10:34:04]FM_GetShiftState [10:34:04]SAM_PROTO_GetShiftState [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 13 01 00 [10:34:04]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0E 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 34 [10:34:04]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_GetShiftState done [10:34:04]FM_GetShiftState done [10:34:04]opened in 1718843069 [10:34:04]opened+sec_in_day 1718929469 [10:34:04]quantity*price = 4900 [10:34:04]sum+1 = 4901 [10:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 22 20.06.2024 10:34 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34412 ФПД: 107024847113312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103406&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34412&fm=107024847113312&tin=02508201610067®Number=0000000000092786&sum=4900 0 [10:34:05]StoreToDocumentArchive [10:34:05]shift 325 fd 34412 [10:34:05]save to /storage/0325/doc_00034412 [10:34:05]save last doc name /storage/0325/doc_00034412 to /storage/kkm_last_doc_name [10:34:05]save OK [10:34:05]Clear old archive folders... [10:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:34:05]tlvbuf is 0020FB00 [10:34:05]SAM_PROTO_ClearQueue [10:34:05]wFMCommunicate request_size=4 [10:34:05]MH_SAM_APDU [10:34:05]CAPDU: 80 09 00 00 [10:34:05]Write to MH i2c: E2 08 00 A6 06 80 09 00 00 00 00 00 00 1E [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:05]Read from MH i2c: E2 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 03 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [10:34:05]RAPDU: 90 00 [10:34:05]wFMCommunicate OK [10:34:05]SAM_PROTO_ClearQueue done [10:34:05]KKMCreateOFDPacket [10:34:05]OFDProtocolAddRootSTLVToBuf [10:34:05]FM_MakeSignedData [10:34:05]FM_MakeSignedData [10:34:05]SAM_PROTO_SignData [10:34:05]wFMCommunicate request_size=4 [10:34:05]MH_SAM_APDU [10:34:05]CAPDU: 80 0D 01 02 [10:34:05]Write to MH i2c: E2 08 00 A7 06 80 0D 01 02 00 00 00 00 26 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=255 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 16 00 00 00 F4 03 04 00 9E 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [10:34:06]Write to MH i2c: E2 02 01 A8 06 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 16 00 00 00 F4 03 04 00 9E 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 66 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=31 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 6C 86 00 00 35 04 06 00 61 56 A9 FE 8C 60 [10:34:06]Write to MH i2c: E2 22 00 A9 06 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 6C 86 00 00 35 04 06 00 61 56 A9 FE 8C 60 00 00 92 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 03 02 [10:34:06]Write to MH i2c: E2 08 00 AA 06 80 0D 03 02 00 00 00 00 2B [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0B 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0B 00 AA 06 00 5F A5 AD 2E 82 7E 89 C8 90 00 5C [10:34:06]RAPDU: 5F A5 AD 2E 82 7E 89 C8 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_SignData done [10:34:06]FM_MakeSignedData done [10:34:06]CreateOFDProtocolMessage [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 11 00 00 [10:34:06]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 80 [10:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:34:06]wFMCommunicate OK [10:34:06]CreateOFDProtocolMessage done [10:34:06]OFDSenderStorePacket 34412 [10:34:06]StoreOFDPacket docnum=34412 [10:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 0E 80 1C 01 4F D8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 16 00 00 00 F4 03 04 00 9E 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6C 86 00 00 35 04 06 00 61 56 A9 FE 8C 60 5F A5 AD 2E 82 7E 89 C8 [10:34:06]CheckFolder [10:34:06]dirname=/storage/ofd_packets [10:34:06]CheckFolder done [10:34:06]ProducePacketName [10:34:06]name=ofd_packets/00034412 [10:34:06]NVStorageSaveData ofd_packets/00034412 [10:34:06]File name is /storage/ofd_packets/00034412 [10:34:06]Write 322 bytes [10:34:06]NVStorageSaveData done [10:34:06]OFDSenderStorePacket done [10:34:06]KKMCreateOFDPacket done [10:34:06]NVStorageSaveData kkm_last_timestamp [10:34:06]File name is /storage/kkm_last_timestamp [10:34:06]Write 4 bytes [10:34:06]NVStorageSaveData done [10:34:06]ExternCall_PrintAddStr [10:34:06]wPrintStart [10:34:06]Write to MH i2c: 01 00 00 AC 06 B2 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: 01 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: 01 07 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [10:34:06]RasterBufferAndPrint [10:34:06]line Счет N : (3)184185 [10:34:06]line ИНН: 02508201610067 [10:34:06]line Контрольно-Кассовый Чек [10:34:06]line ПРОДАЖА [10:34:06]line Товар: 80942726 [10:34:06]line Р/ж mentos мята ролл 16г [10:34:06]line 1.000 * 49.00 [10:34:06]line = 49.00 [10:34:06]line НДС 12% НСП 1% [10:34:06]line > о реализуемом товаре [10:34:06]line ИТОГО: 49.00 [10:34:06]line НСП 1% : 0.43 [10:34:06]line НДС 12% : 5.20 [10:34:06]line Наличными: 49.00 [10:34:06]line Безнал.: 0.00 [10:34:06]line Место: АЗС № 120 "Партнер Нефть" [10:34:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:34:06]line СНО: Общий режим [10:34:06]line Чек 22 20.06.2024 10:34 [10:34:06]line Смена: 325 ФФД: 1.0 [10:34:06]line ЗНМ: 0300000172 [10:34:06]line РНМ: 0000000000092786 [10:34:06]line Версия ККМ: 001 [10:34:06]line ФМ: 0000000000875095 [10:34:06]line ФД: 34412 [10:34:06]line ФПД: 107024847113312 [10:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103406&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34412&fm=107024847113312&tin=02508201610067®Number=0000000000092786&sum=4900 [10:34:06]line 0 [10:34:06]OFD Sender: Processing packet 34412 [packets to send 8, broken 7] [10:34:06]ProducePacketName [10:34:06]name=ofd_packets/00034412 [10:34:06]OFD Sender: To server: pG, [10:34:06]CommunicateWithHost lk.salyk.kg:30040 [10:34:06]ConnectInit lk.salyk.kg [10:34:06]written 0, free lines is 4095 [10:34:06]Connected sock=10 [10:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 0E 80 1C 01 4F D8 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 16 00 00 00 F4 03 04 00 9E 05 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6C 86 00 00 35 04 06 00 61 56 A9 FE 8C 60 5F A5 AD 2E 82 7E 89 C8 [10:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C2 70 47 00 CC 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 35 30 39 35 10 04 04 00 6C 86 00 00 F4 03 04 00 68 AC 73 66 B6 04 01 00 00 8F 91 75 43 40 BB 07 1C [10:34:07]CommunicateWithHost err = 0 [10:34:07]CheckOFDResponse [10:34:07]1017 (14) - 77093643461234 [10:34:07]1041 (16) - 0000000000875095 [10:34:07]1040 (4) - 34412 [10:34:07]1012 (4) - 20.06.2024 04:13 [10:34:07]1206 (1) - 0 [10:34:07]OFD Sender: Remove packet 34412 [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00034412 [10:34:07]NVStorageDeleteData [10:34:07]Write to MH i2c: 01 00 00 D4 06 DA [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 01 0D EF [10:34:07]RasterBufferAndPrint [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]written 0, free lines is 3335 [10:34:07]MH_Cut [10:34:07]Write to MH i2c: D1 01 00 DB 06 01 B3 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 DB 06 00 B2 [10:34:07]Write to MH i2c: 01 00 00 DC 06 E2 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]OFD Sender: No OFD packet to send [10:34:08]*** Cut start [10:34:08]*** Partial cut [10:34:08]*** CUTSNS_PIN = 1 [10:34:08]*** CUTSNS_PIN = 0 [10:34:08]*** Brake cut motor [10:34:08]Read from MH i2c: 01 [10:34:08]MH_I2C_Read... [10:34:08]*** Stop cut motor [10:34:08]*** Cut end [10:34:08]Read from MH i2c: 01 07 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: 01 07 00 DC 06 00 00 00 00 00 FF 0F F7 [10:34:08]process_action close_receipt done [10:34:08]requested_data is exist [10:34:08]produce_requested_data [10:34:08]requested_item fm.sn is exist - process it [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 11 00 00 [10:34:08]Write to MH i2c: E2 08 00 DD 06 80 11 00 00 00 00 00 00 5D [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 DD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B2 [10:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:34:08]wFMCommunicate OK [10:34:08]requested_item fd.num is exist - process it [10:34:08]SAM_PROTO_GetFieldsCounters [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 13 00 00 [10:34:08]Write to MH i2c: E2 08 00 DE 06 80 13 00 00 00 00 00 00 60 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 62 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 62 00 DE 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6C 86 00 00 0E 04 04 00 45 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 04 [10:34: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6C 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:08]wFMCommunicate OK [10:34:08]SAM_PROTO_GetFieldsCounters done [10:34:08]requested_item shift.num is exist - process it [10:34:08]requested_item shift.opened is exist - process it [10:34:08]req_shift_opened [10:34:08]FM_GetShiftState [10:34:08]SAM_PROTO_GetShiftState [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 13 01 00 [10:34:08]Write to MH i2c: E2 08 00 DF 06 80 13 01 00 00 00 00 00 62 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 0E 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 0E 00 DF 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7A [10:34:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:34:08]wFMCommunicate OK [10:34:08]SAM_PROTO_GetShiftState done [10:34:08]FM_GetShiftState done [10:34:08]req_shift_opened done [10:34:08]requested_item shift.open_date is exist - process it [10:34:08]req_shift_open_date [10:34:08]req_shift_open_date done [10:34:08]produce_requested_data done [10:34:08]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34412,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:34:08]process_action_free close_receipt [10:34:08]json_value_free [10:34:08]json_value_free done [10:34:08]process_json_proto returns [10:34:08]Send response to host [10:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34412,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:34:08]free response buf [10:34:08]execute_script done [10:34:08]execute_script returns [10:34:08]free content buf [10:34:08]Sock 9.Close socket [10:34:08]Sock 9.Thread stoped [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:05]accept exits with 8 [10:40:05]New connection [10:40:05]New thread 3066654052 created [10:40:05]Thread 3066510692 joined [10:40:05]Waiting for new connection... [10:40:05] Sock 8.Parse request [10:40:05]Sock 8.Check first char [10:40:05]Sock 8.First char is OK [10:40:05]request: POST /json_proto HTTP/1.0 [10:40:05]Method: POST [10:40:05]URL: /json_proto [10:40:05]Method is POST - this is cgi request [10:40:05]url: /json_proto [10:40:05]query_string will be loaded in cgi processing [10:40:05]execute_cgi json_proto POST (null) [10:40:05]execute_cgi path=json_proto method=POST [10:40:05]POST find Content-Length [10:40:05]Host: 172.17.38.134:8080 [10:40:05]Content-Length: 1147 [10:40:05]Content-Type: application/json [10:40:05] [10:40:05]POST finish read [10:40:05]Found Content-Length = 1147 [10:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184186", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5053990101597", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u043C\u0435\u0442\u0430\u043D\u0430 \u0438 \u043B\u0443\u043A 165\u0433", "price" : 420.00, "quantity" : 1.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:05]execute_script... [10:40:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184186", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 5.000, "sum" : 575.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5053990101597", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u043C\u0435\u0442\u0430\u043D\u0430 \u0438 \u043B\u0443\u043A 165\u0433", "price" : 420.00, "quantity" : 1.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:05]POST & json_proto [10:40:05]process_json_proto [10:40:05]json parsed OK: [10:40:05]protocol is kg_v1.0 [10:40:05]action value=close_receipt [10:40:05]process_action close_receipt [10:40:05]cmd_close_receipt [10:40:05]MH_GetDate [10:40:05]Write to MH i2c: F0 00 00 E0 06 D5 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 09 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: F0 09 00 E0 06 00 07 07 74 66 13 9C 7C 64 55 [10:40:05]GetLastDocTimeStamp 1718879646 [10:40:05]current date 1718880007 [10:40:05]FM_GetShiftState [10:40:05]SAM_PROTO_GetShiftState [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 01 00 [10:40:05]Write to MH i2c: E2 08 00 E1 06 80 13 01 00 00 00 00 00 64 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 E1 06 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7C [10:40:06]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_GetShiftState done [10:40:06]FM_GetShiftState done [10:40:06]opened in 1718843069 [10:40:06]opened+sec_in_day 1718929469 [10:40:06]quantity*price = 57500 [10:40:06]sum+1 = 57501 [10:40:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5053990101597 Чипсы Принглс сметана и лук 165г 1.000 * 420.00 = 420.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 995.00 НСП 1% : 8.81 НДС 12% : 105.66 Наличными: 0.00 Безнал.: 995.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 20.06.2024 10:40 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34413 ФПД: 143878773304130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104007&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34413&fm=143878773304130&tin=02508201610067®Number=0000000000092786&sum=99500 0 [10:40:07]StoreToDocumentArchive [10:40:07]shift 325 fd 34413 [10:40:07]save to /storage/0325/doc_00034413 [10:40:07]save last doc name /storage/0325/doc_00034413 to /storage/kkm_last_doc_name [10:40:07]save OK [10:40:07]Clear old archive folders... [10:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=408 [10:40:07]tlvbuf is 001F7170 [10:40:07]SAM_PROTO_ClearQueue [10:40:07]wFMCommunicate request_size=4 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 09 00 00 [10:40:07]Write to MH i2c: E2 08 00 EE 06 80 09 00 00 00 00 00 00 66 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:07]Read from MH i2c: E2 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [10:40:07]RAPDU: 90 00 [10:40:07]wFMCommunicate OK [10:40:07]SAM_PROTO_ClearQueue done [10:40:07]KKMCreateOFDPacket [10:40:07]OFDProtocolAddRootSTLVToBuf [10:40:07]FM_MakeSignedData [10:40:07]FM_MakeSignedData [10:40:07]SAM_PROTO_SignData [10:40:07]wFMCommunicate request_size=4 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 0D 01 02 [10:40:07]Write to MH i2c: E2 08 00 EF 06 80 0D 01 02 00 00 00 00 6E [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:07]Read from MH i2c: E2 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 EF 06 00 90 00 69 [10:40:07]RAPDU: 90 00 [10:40:07]wFMCommunicate OK [10:40:07]wFMCommunicate request_size=255 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 39 37 06 04 38 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [10:40:07]Write to MH i2c: E2 02 01 F0 06 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 39 37 06 04 38 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:07]Read from MH i2c: E2 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [10:40:07]RAPDU: 90 00 [10:40:07]wFMCommunicate OK [10:40:07]wFMCommunicate request_size=167 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 0D 02 02 A2 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 84 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 07 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6D 86 00 00 35 04 06 00 82 DB 63 2C 6B 42 [10:40:07]Write to MH i2c: E2 AA 00 F1 06 80 0D 02 02 A2 00 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 84 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 07 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6D 86 00 00 35 04 06 00 82 DB 63 2C 6B 42 00 00 11 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [10:40:08]RAPDU: 90 00 [10:40:08]wFMCommunicate OK [10:40:08]wFMCommunicate request_size=4 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 0D 03 02 [10:40:08]Write to MH i2c: E2 08 00 F2 06 80 0D 03 02 00 00 00 00 73 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]OFD Sender: No OFD packet to send [10:40:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 0B 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 0B 00 F2 06 00 E7 CE 1B B3 DD FF A8 66 90 00 E1 [10:40:08]RAPDU: E7 CE 1B B3 DD FF A8 66 90 00 [10:40:08]wFMCommunicate OK [10:40:08]SAM_PROTO_SignData done [10:40:08]FM_MakeSignedData done [10:40:08]CreateOFDProtocolMessage [10:40:08]wFMCommunicate request_size=4 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 11 00 00 [10:40:08]Write to MH i2c: E2 08 00 F3 06 80 11 00 00 00 00 00 00 73 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 17 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 17 00 F3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C8 [10:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:40:08]wFMCommunicate OK [10:40:08]CreateOFDProtocolMessage done [10:40:08]OFDSenderStorePacket 34413 [10:40:08]StoreOFDPacket docnum=34413 [10:40:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 AC 01 00 00 37 89 A4 01 7D D3 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 39 37 06 04 38 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 84 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 07 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6D 86 00 00 35 04 06 00 82 DB 63 2C 6B 42 E7 CE 1B B3 DD FF A8 66 [10:40:08]CheckFolder [10:40:08]dirname=/storage/ofd_packets [10:40:08]CheckFolder done [10:40:08]ProducePacketName [10:40:08]name=ofd_packets/00034413 [10:40:08]NVStorageSaveData ofd_packets/00034413 [10:40:08]File name is /storage/ofd_packets/00034413 [10:40:08]Write 458 bytes [10:40:08]NVStorageSaveData done [10:40:08]OFDSenderStorePacket done [10:40:08]KKMCreateOFDPacket done [10:40:08]NVStorageSaveData kkm_last_timestamp [10:40:08]File name is /storage/kkm_last_timestamp [10:40:08]Write 4 bytes [10:40:08]NVStorageSaveData done [10:40:08]ExternCall_PrintAddStr [10:40:08]wPrintStart [10:40:08]Write to MH i2c: 01 00 00 F4 06 FA [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 07 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [10:40:08]RasterBufferAndPrint [10:40:08]line Счет N : (3)184186 [10:40:08]line ИНН: 02508201610067 [10:40:08]line Контрольно-Кассовый Чек [10:40:08]line ПРОДАЖА [10:40:08]line Товар: 2000036210013 [10:40:08]line Кофе Капучино (GABB TRADE) [10:40:08]line 5.000 * 115.00 [10:40:08]line = 575.00 [10:40:08]line НДС 12% НСП 1% [10:40:08]line > о реализуемом товаре [10:40:08]line Товар: 5053990101597 [10:40:08]line Чипсы Принглс сметана и лук 165г [10:40:08]line 1.000 * 420.00 [10:40:08]line = 420.00 [10:40:08]line НДС 12% НСП 1% [10:40:08]line > о реализуемом товаре [10:40:08]line ИТОГО: 995.00 [10:40:08]line НСП 1% : 8.81 [10:40:08]line НДС 12% : 105.66 [10:40:08]line Наличными: 0.00 [10:40:08]line Безнал.: 995.00 [10:40:08]line Место: АЗС № 120 "Партнер Нефть" [10:40:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:40:08]line СНО: Общий режим [10:40:08]line Чек 23 20.06.2024 10:40 [10:40:08]line Смена: 325 ФФД: 1.0 [10:40:08]line ЗНМ: 0300000172 [10:40:08]line РНМ: 0000000000092786 [10:40:08]line Версия ККМ: 001 [10:40:08]line Платежная система: Бакай Банк [10:40:08]line ФМ: 0000000000875095 [10:40:08]line ФД: 34413 [10:40:08]line ФПД: 143878773304130 [10:40:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104007&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34413&fm=143878773304130&tin=02508201610067®Number=0000000000092786&sum=99500 [10:40:08]line 0 [10:40:08]written 0, free lines is 4095 [10:40:08]OFD Sender: Processing packet 34413 [packets to send 8, broken 7] [10:40:08]ProducePacketName [10:40:08]name=ofd_packets/00034413 [10:40:08]OFD Sender: To server: pG, [10:40:08]CommunicateWithHost lk.salyk.kg:30040 [10:40:08]ConnectInit lk.salyk.kg [10:40:08]Connected sock=10 [10:40:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 AC 01 00 00 37 89 A4 01 7D D3 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 9C E0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 31 35 39 37 06 04 38 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 84 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 07 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6D 86 00 00 35 04 06 00 82 DB 63 2C 6B 42 E7 CE 1B B3 DD FF A8 66 [10:40:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 45 EF 47 00 63 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 35 30 39 35 10 04 04 00 6D 86 00 00 F4 03 04 00 D1 AD 73 66 B6 04 01 00 00 17 2B B0 F1 EE AD BE 5D [10:40:08]CommunicateWithHost err = 0 [10:40:08]CheckOFDResponse [10:40:08]1017 (14) - 77093643461234 [10:40:08]1041 (16) - 0000000000875095 [10:40:08]1040 (4) - 34413 [10:40:08]1012 (4) - 20.06.2024 04:19 [10:40:08]1206 (1) - 0 [10:40:08]OFD Sender: Remove packet 34413 [10:40:08]ProducePacketName [10:40:08]name=ofd_packets/00034413 [10:40:08]NVStorageDeleteData [10:40:08]Write to MH i2c: 01 00 00 25 07 2C [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 07 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 70 0C AF [10:40:08]RasterBufferAndPrint [10:40:08]line [10:40:08]line [10:40:08]line [10:40:08]line [10:40:08]line [10:40:08]written 0, free lines is 3191 [10:40:08]MH_Cut [10:40:08]Write to MH i2c: D1 01 00 2C 07 01 05 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: D1 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: D1 01 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: D1 01 00 2C 07 00 04 [10:40:08]Write to MH i2c: 01 00 00 2D 07 34 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:09]OFD Sender: No OFD packet to send [10:40:09]*** Cut start [10:40:09]*** Partial cut [10:40:09]*** CUTSNS_PIN = 1 [10:40:09]*** CUTSNS_PIN = 0 [10:40:09]*** Brake cut motor [10:40:10]Read from MH i2c: 01 [10:40:10]MH_I2C_Read... [10:40:10]*** Stop cut motor [10:40:10]*** Cut end [10:40:10]Read from MH i2c: 01 07 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [10:40:10]process_action close_receipt done [10:40:10]requested_data is exist [10:40:10]produce_requested_data [10:40:10]requested_item fm.sn is exist - process it [10:40:10]wFMCommunicate request_size=4 [10:40:10]MH_SAM_APDU [10:40:10]CAPDU: 80 11 00 00 [10:40:10]Write to MH i2c: E2 08 00 2E 07 80 11 00 00 00 00 00 00 AF [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:10]Read from MH i2c: E2 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 17 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 17 00 2E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 04 [10:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:40:10]wFMCommunicate OK [10:40:10]requested_item fd.num is exist - process it [10:40:10]SAM_PROTO_GetFieldsCounters [10:40:10]wFMCommunicate request_size=4 [10:40:10]MH_SAM_APDU [10:40:10]CAPDU: 80 13 00 00 [10:40:10]Write to MH i2c: E2 08 00 2F 07 80 13 00 00 00 00 00 00 B2 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:10]Read from MH i2c: E2 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 62 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 62 00 2F 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6D 86 00 00 0E 04 04 00 45 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 5A [10:40: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6D 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:10]wFMCommunicate OK [10:40:10]SAM_PROTO_GetFieldsCounters done [10:40:10]requested_item shift.num is exist - process it [10:40:10]requested_item shift.opened is exist - process it [10:40:10]req_shift_opened [10:40:10]FM_GetShiftState [10:40:10]SAM_PROTO_GetShiftState [10:40:10]wFMCommunicate request_size=4 [10:40:10]MH_SAM_APDU [10:40:10]CAPDU: 80 13 01 00 [10:40:10]Write to MH i2c: E2 08 00 30 07 80 13 01 00 00 00 00 00 B4 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:10]Read from MH i2c: E2 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 0E 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: E2 0E 00 30 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CC [10:40:10]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [10:40:10]wFMCommunicate OK [10:40:10]SAM_PROTO_GetShiftState done [10:40:10]FM_GetShiftState done [10:40:10]req_shift_opened done [10:40:10]requested_item shift.open_date is exist - process it [10:40:10]req_shift_open_date [10:40:10]req_shift_open_date done [10:40:10]produce_requested_data done [10:40:10]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34413,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [10:40:10]process_action_free close_receipt [10:40:10]json_value_free [10:40:10]json_value_free done [10:40:10]process_json_proto returns [10:40:10]Send response to host [10:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34413,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [10:40:10]free response buf [10:40:10]execute_script done [10:40:10]execute_script returns [10:40:10]free content buf [10:40:10]Sock 8.Close socket [10:40:10]Sock 8.Thread stoped [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]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:09]accept exits with 9 [11:12:09]New connection [11:12:09]New thread 3066510692 created [11:12:09]Thread 3066654052 joined [11:12:09]Waiting for new connection... [11:12:09] Sock 9.Parse request [11:12:09]Sock 9.Check first char [11:12:09]Sock 9.First char is OK [11:12:09]request: POST /json_proto HTTP/1.0 [11:12:09]Method: POST [11:12:09]URL: /json_proto [11:12:09]Method is POST - this is cgi request [11:12:09]url: /json_proto [11:12:09]query_string will be loaded in cgi processing [11:12:09]execute_cgi json_proto POST (null) [11:12:09]execute_cgi path=json_proto method=POST [11:12:09]POST find Content-Length [11:12:09]Host: 172.17.38.134:8080 [11:12:09]Content-Length: 684 [11:12:09]Content-Type: application/json [11:12:09] [11:12:09]POST finish read [11:12:09]Found Content-Length = 684 [11:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184187", "tax_sys" : 0, "items" : [ { "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:09]execute_script... [11:12:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184187", "tax_sys" : 0, "items" : [ { "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:09]POST & json_proto [11:12:09]process_json_proto [11:12:09]json parsed OK: [11:12:09]protocol is kg_v1.0 [11:12:09]action value=close_receipt [11:12:09]process_action close_receipt [11:12:09]cmd_close_receipt [11:12:09]MH_GetDate [11:12:09]Write to MH i2c: F0 00 00 31 07 27 [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: F0 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: F0 09 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: F0 09 00 31 07 00 8B 0E 74 66 13 9C 7C 64 32 [11:12:09]GetLastDocTimeStamp 1718880007 [11:12:09]current date 1718881931 [11:12:09]FM_GetShiftState [11:12:09]SAM_PROTO_GetShiftState [11:12:09]wFMCommunicate request_size=4 [11:12:09]MH_SAM_APDU [11:12:09]CAPDU: 80 13 01 00 [11:12:09]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:09]Read from MH i2c: E2 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 0E 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CE [11:12:09]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:12:09]wFMCommunicate OK [11:12:09]SAM_PROTO_GetShiftState done [11:12:09]FM_GetShiftState done [11:12:09]opened in 1718843069 [11:12:09]opened+sec_in_day 1718929469 [11:12:09]quantity*price = 12500 [11:12:09]sum+1 = 12501 [11:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 20.06.2024 11:12 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34414 ФПД: 23757098810420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111211&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34414&fm=23757098810420&tin=02508201610067®Number=0000000000092786&sum=12500 0 [11:12:10]StoreToDocumentArchive [11:12:10]shift 325 fd 34414 [11:12:10]save to /storage/0325/doc_00034414 [11:12:10]save last doc name /storage/0325/doc_00034414 to /storage/kkm_last_doc_name [11:12:10]save OK [11:12:10]Clear old archive folders... [11:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=292 [11:12:10]tlvbuf is 001F0630 [11:12:10]SAM_PROTO_ClearQueue [11:12:10]wFMCommunicate request_size=4 [11:12:10]MH_SAM_APDU [11:12:10]CAPDU: 80 09 00 00 [11:12:10]Write to MH i2c: E2 08 00 3F 07 80 09 00 00 00 00 00 00 B8 [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:10]Read from MH i2c: E2 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 03 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: E2 03 00 3F 07 00 90 00 BA [11:12:10]RAPDU: 90 00 [11:12:10]wFMCommunicate OK [11:12:10]SAM_PROTO_ClearQueue done [11:12:10]KKMCreateOFDPacket [11:12:10]OFDProtocolAddRootSTLVToBuf [11:12:10]FM_MakeSignedData [11:12:10]FM_MakeSignedData [11:12:10]SAM_PROTO_SignData [11:12:10]wFMCommunicate request_size=4 [11:12:10]MH_SAM_APDU [11:12:10]CAPDU: 80 0D 01 02 [11:12:10]Write to MH i2c: E2 08 00 40 07 80 0D 01 02 00 00 00 00 C0 [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 40 07 00 90 00 BB [11:12:11]RAPDU: 90 00 [11:12:11]wFMCommunicate OK [11:12:11]wFMCommunicate request_size=255 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 8B 0E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [11:12:11]Write to MH i2c: E2 02 01 41 07 80 0D 02 02 FA 00 03 00 24 01 1E 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 8B 0E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 57 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [11:12:11]RAPDU: 90 00 [11:12:11]wFMCommunicate OK [11:12:11]wFMCommunicate request_size=51 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6E 86 00 00 35 04 06 00 15 9B 61 6F 7C 34 [11:12:11]Write to MH i2c: E2 36 00 42 07 80 0D 02 02 2E 00 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6E 86 00 00 35 04 06 00 15 9B 61 6F 7C 34 00 00 81 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [11:12:11]RAPDU: 90 00 [11:12:11]wFMCommunicate OK [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 0D 03 02 [11:12:11]Write to MH i2c: E2 08 00 43 07 80 0D 03 02 00 00 00 00 C5 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0B 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0B 00 43 07 00 19 C1 BA 5B 9C C1 7F A4 90 00 35 [11:12:11]RAPDU: 19 C1 BA 5B 9C C1 7F A4 90 00 [11:12:11]wFMCommunicate OK [11:12:11]SAM_PROTO_SignData done [11:12:11]FM_MakeSignedData done [11:12:11]CreateOFDProtocolMessage [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 11 00 00 [11:12:11]Write to MH i2c: E2 08 00 44 07 80 11 00 00 00 00 00 00 C5 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 17 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 17 00 44 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [11:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:12:11]wFMCommunicate OK [11:12:11]CreateOFDProtocolMessage done [11:12:11]OFDSenderStorePacket 34414 [11:12:11]StoreOFDPacket docnum=34414 [11:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 38 01 00 00 59 C7 30 01 F4 22 5A 03 01 00 03 00 24 01 1E 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 8B 0E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6E 86 00 00 35 04 06 00 15 9B 61 6F 7C 34 19 C1 BA 5B 9C C1 7F A4 [11:12:11]CheckFolder [11:12:11]dirname=/storage/ofd_packets [11:12:11]CheckFolder done [11:12:11]ProducePacketName [11:12:11]name=ofd_packets/00034414 [11:12:11]NVStorageSaveData ofd_packets/00034414 [11:12:11]File name is /storage/ofd_packets/00034414 [11:12:11]Write 342 bytes [11:12:11]NVStorageSaveData done [11:12:11]OFDSenderStorePacket done [11:12:11]KKMCreateOFDPacket done [11:12:11]NVStorageSaveData kkm_last_timestamp [11:12:11]File name is /storage/kkm_last_timestamp [11:12:11]Write 4 bytes [11:12:11]NVStorageSaveData done [11:12:11]ExternCall_PrintAddStr [11:12:11]wPrintStart [11:12:11]Write to MH i2c: 01 00 00 45 07 4C [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: 01 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: 01 07 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 FF 0F 61 [11:12:11]RasterBufferAndPrint [11:12:11]line Счет N : (3)184187 [11:12:11]line ИНН: 02508201610067 [11:12:11]line Контрольно-Кассовый Чек [11:12:11]line ПРОДАЖА [11:12:11]line Товар: 4870202521230 [11:12:11]line Напиток MAXI чай 1,2 черн.лимон [11:12:11]line 1.000 * 125.00 [11:12:11]line = 125.00 [11:12:11]line НДС 12% НСП 1% [11:12:11]line > о реализуемом товаре [11:12:11]line ИТОГО: 125.00 [11:12:11]line НСП 1% : 1.11 [11:12:11]line НДС 12% : 13.27 [11:12:11]line Наличными: 125.00 [11:12:11]line Безнал.: 0.00 [11:12:11]line Место: АЗС № 120 "Партнер Нефть" [11:12:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:12:11]line СНО: Общий режим [11:12:11]line Чек 24 20.06.2024 11:12 [11:12:11]line Смена: 325 ФФД: 1.0 [11:12:11]line ЗНМ: 0300000172 [11:12:11]line РНМ: 0000000000092786 [11:12:11]line Версия ККМ: 001 [11:12:11]line ФМ: 0000000000875095 [11:12:11]line ФД: 34414 [11:12:11]line ФПД: 23757098810420 [11:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111211&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34414&fm=23757098810420&tin=02508201610067®Number=0000000000092786&sum=12500 [11:12:11]OFD Sender: Processing packet 34414 [packets to send 8, broken 7] [11:12:11]ProducePacketName [11:12:11]name=ofd_packets/00034414 [11:12:11]OFD Sender: To server: pG, [11:12:11]CommunicateWithHost lk.salyk.kg:30040 [11:12:11]ConnectInit lk.salyk.kg [11:12:11]line 0 [11:12:11]written 0, free lines is 4095 [11:12:11]Connected sock=10 [11:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 38 01 00 00 59 C7 30 01 F4 22 5A 03 01 00 03 00 24 01 1E 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 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 8B 0E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6E 86 00 00 35 04 06 00 15 9B 61 6F 7C 34 19 C1 BA 5B 9C C1 7F A4 [11:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 87 BE 47 00 1B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6E 86 00 00 F4 03 04 00 55 B5 73 66 B6 04 01 00 00 A8 35 71 F0 A9 C7 BE EB [11:12:12]CommunicateWithHost err = 0 [11:12:12]CheckOFDResponse [11:12:12]1017 (14) - 77093643461234 [11:12:12]1041 (16) - 0000000000875095 [11:12:12]1040 (4) - 34414 [11:12:12]1012 (4) - 20.06.2024 04:51 [11:12:12]1206 (1) - 0 [11:12:12]OFD Sender: Remove packet 34414 [11:12:12]ProducePacketName [11:12:12]name=ofd_packets/00034414 [11:12:12]NVStorageDeleteData [11:12:12]Write to MH i2c: 01 00 00 6E 07 75 [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: 01 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: 01 07 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: 01 07 00 6E 07 00 00 00 00 00 E9 0C 71 [11:12:12]RasterBufferAndPrint [11:12:12]line [11:12:12]line [11:12:12]line [11:12:12]line [11:12:12]line [11:12:12]written 0, free lines is 3314 [11:12:12]MH_Cut [11:12:12]Write to MH i2c: D1 01 00 75 07 01 4E [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: D1 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: D1 01 00 [11:12:12]MH_I2C_Read... [11:12:12]Read from MH i2c: D1 01 00 75 07 00 4D [11:12:12]Write to MH i2c: 01 00 00 76 07 7D [11:12:12]Write i2c OK [11:12:12]MH_I2C_Read... [11:12:12]OFD Sender: No OFD packet to send [11:12:13]*** Cut start [11:12:13]*** Partial cut [11:12:13]*** CUTSNS_PIN = 1 [11:12:13]*** CUTSNS_PIN = 0 [11:12:13]*** Brake cut motor [11:12:13]Read from MH i2c: 01 [11:12:13]MH_I2C_Read... [11:12:13]*** Stop cut motor [11:12:13]*** Cut end [11:12:13]Read from MH i2c: 01 07 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 FF 0F 92 [11:12:13]process_action close_receipt done [11:12:13]requested_data is exist [11:12:13]produce_requested_data [11:12:13]requested_item fm.sn is exist - process it [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 11 00 00 [11:12:13]Write to MH i2c: E2 08 00 77 07 80 11 00 00 00 00 00 00 F8 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 17 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 17 00 77 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4D [11:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:12:13]wFMCommunicate OK [11:12:13]requested_item fd.num is exist - process it [11:12:13]SAM_PROTO_GetFieldsCounters [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 13 00 00 [11:12:13]Write to MH i2c: E2 08 00 78 07 80 13 00 00 00 00 00 00 FB [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 62 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 62 00 78 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6E 86 00 00 0E 04 04 00 45 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 A7 [11:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6E 86 00 00 0E 04 04 00 45 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 [11:12:13]wFMCommunicate OK [11:12:13]SAM_PROTO_GetFieldsCounters done [11:12:13]requested_item shift.num is exist - process it [11:12:13]requested_item shift.opened is exist - process it [11:12:13]req_shift_opened [11:12:13]FM_GetShiftState [11:12:13]SAM_PROTO_GetShiftState [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 13 01 00 [11:12:13]Write to MH i2c: E2 08 00 79 07 80 13 01 00 00 00 00 00 FD [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 0E 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 0E 00 79 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 15 [11:12:13]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:12:13]wFMCommunicate OK [11:12:13]SAM_PROTO_GetShiftState done [11:12:13]FM_GetShiftState done [11:12:13]req_shift_opened done [11:12:13]requested_item shift.open_date is exist - process it [11:12:13]req_shift_open_date [11:12:13]req_shift_open_date done [11:12:13]produce_requested_data done [11:12:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34414,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:12:13]process_action_free close_receipt [11:12:13]json_value_free [11:12:13]json_value_free done [11:12:13]process_json_proto returns [11:12:13]Send response to host [11:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34414,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:12:13]free response buf [11:12:13]execute_script done [11:12:13]execute_script returns [11:12:13]free content buf [11:12:13]Sock 9.Close socket [11:12:13]Sock 9.Thread stoped [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:09]int [11:16:09]Write to MH i2c: 01 00 00 7A 07 81 [11:16:09]*** FLAG_PRN_PAP2 set [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 07 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: 01 07 00 7A 07 00 02 00 00 00 FF 0F 98 [11:16:09]state=0 [11:16:09]Cover opened [11:16:12]OFD Sender: No OFD packet to send [11:16:14]Write to MH i2c: 01 00 00 7B 07 82 [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 7B 07 00 02 00 00 00 FF 0F 99 [11:16:14]state=3 [11:16:14]Cover opened [11:16:17]OFD Sender: No OFD packet to send [11:16:19]Write to MH i2c: 01 00 00 7C 07 83 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: 01 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: 01 07 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: 01 07 00 7C 07 00 02 00 00 00 FF 0F 9A [11:16:19]state=3 [11:16:19]Cover opened [11:16:20]int [11:16:20]Write to MH i2c: 01 00 00 7D 07 84 [11:16:20]*** FLAG_PRN_PAP2 reset [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [11:16:20]state=3 [11:16:20]Cover closed [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28: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:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:16]accept exits with 8 [11:35:16]New connection [11:35:16]New thread 3066654052 created [11:35:16]Thread 3066510692 joined [11:35:16]Waiting for new connection... [11:35:16] Sock 8.Parse request [11:35:16]Sock 8.Check first char [11:35:16]Sock 8.First char is OK [11:35:16]request: POST /json_proto HTTP/1.0 [11:35:16]Method: POST [11:35:16]URL: /json_proto [11:35:16]Method is POST - this is cgi request [11:35:16]url: /json_proto [11:35:16]query_string will be loaded in cgi processing [11:35:16]execute_cgi json_proto POST (null) [11:35:16]execute_cgi path=json_proto method=POST [11:35:16]POST find Content-Length [11:35:16]Host: 172.17.38.134:8080 [11:35:16]Content-Length: 1109 [11:35:16]Content-Type: application/json [11:35:16] [11:35:16]POST finish read [11:35:16]Found Content-Length = 1109 [11:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184188", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:16]execute_script... [11:35:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184188", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:16]POST & json_proto [11:35:16]process_json_proto [11:35:16]json parsed OK: [11:35:16]protocol is kg_v1.0 [11:35:16]action value=close_receipt [11:35:16]process_action close_receipt [11:35:16]cmd_close_receipt [11:35:16]MH_GetDate [11:35:16]Write to MH i2c: F0 00 00 7E 07 74 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 09 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 09 00 7E 07 00 F5 13 74 66 13 9C 7C 64 EE [11:35:16]GetLastDocTimeStamp 1718881931 [11:35:16]current date 1718883317 [11:35:16]FM_GetShiftState [11:35:16]SAM_PROTO_GetShiftState [11:35:16]wFMCommunicate request_size=4 [11:35:16]MH_SAM_APDU [11:35:16]CAPDU: 80 13 01 00 [11:35:16]Write to MH i2c: E2 08 00 7F 07 80 13 01 00 00 00 00 00 03 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 7F 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 1B [11:35:16]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetShiftState done [11:35:16]FM_GetShiftState done [11:35:16]opened in 1718843069 [11:35:16]opened+sec_in_day 1718929469 [11:35:16]quantity*price = 5000 [11:35:16]sum+1 = 5001 [11:35:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46196798 Сигареты Mevius Revo 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.16 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 20.06.2024 11:35 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34415 ФПД: 159853739416176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113517&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34415&fm=159853739416176&tin=02508201610067®Number=0000000000092786&sum=24500 0 [11:35:17]StoreToDocumentArchive [11:35:17]shift 325 fd 34415 [11:35:17]save to /storage/0325/doc_00034415 [11:35:17]save last doc name /storage/0325/doc_00034415 to /storage/kkm_last_doc_name [11:35:17]save OK [11:35:17]Clear old archive folders... [11:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=465 [11:35:17]tlvbuf is 00203D00 [11:35:17]SAM_PROTO_ClearQueue [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 09 00 00 [11:35:17]Write to MH i2c: E2 08 00 8C 07 80 09 00 00 00 00 00 00 05 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [11:35:17]RAPDU: 90 00 [11:35:17]wFMCommunicate OK [11:35:17]SAM_PROTO_ClearQueue done [11:35:17]KKMCreateOFDPacket [11:35:17]OFDProtocolAddRootSTLVToBuf [11:35:17]FM_MakeSignedData [11:35:17]FM_MakeSignedData [11:35:17]SAM_PROTO_SignData [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 0D 01 02 [11:35:17]Write to MH i2c: E2 08 00 8D 07 80 0D 01 02 00 00 00 00 0D [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [11:35:17]RAPDU: 90 00 [11:35:17]wFMCommunicate OK [11:35:17]wFMCommunicate request_size=255 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 0D 02 02 FA 03 00 D1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 [11:35:17]Write to MH i2c: E2 02 01 8E 07 80 0D 02 02 FA 00 03 00 D1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 00 00 C1 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [11:35:17]RAPDU: 90 00 [11:35:17]wFMCommunicate OK [11:35:17]wFMCommunicate request_size=224 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 0D 02 02 DB 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 13 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6F 86 00 00 35 04 06 00 91 62 D9 5A 9A 70 [11:35:17]Write to MH i2c: E2 E3 00 8F 07 80 0D 02 02 DB 00 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 13 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6F 86 00 00 35 04 06 00 91 62 D9 5A 9A 70 00 00 E7 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [11:35:18]RAPDU: 90 00 [11:35:18]wFMCommunicate OK [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 0D 03 02 [11:35:18]Write to MH i2c: E2 08 00 90 07 80 0D 03 02 00 00 00 00 12 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0B 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0B 00 90 07 00 16 BF E4 C4 B7 32 C3 B0 90 00 EC [11:35:18]RAPDU: 16 BF E4 C4 B7 32 C3 B0 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_SignData done [11:35:18]FM_MakeSignedData done [11:35:18]CreateOFDProtocolMessage [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 11 00 00 [11:35:18]Write to MH i2c: E2 08 00 91 07 80 11 00 00 00 00 00 00 12 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 91 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [11:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:35:18]wFMCommunicate OK [11:35:18]CreateOFDProtocolMessage done [11:35:18]OFDSenderStorePacket 34415 [11:35:18]StoreOFDPacket docnum=34415 [11:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 E5 01 00 00 C4 0C DD 01 B4 A8 5A 03 01 00 03 00 D1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 13 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6F 86 00 00 35 04 06 00 91 62 D9 5A 9A 70 16 BF E4 C4 B7 32 C3 B0 [11:35:18]CheckFolder [11:35:18]dirname=/storage/ofd_packets [11:35:18]CheckFolder done [11:35:18]ProducePacketName [11:35:18]name=ofd_packets/00034415 [11:35:18]NVStorageSaveData ofd_packets/00034415 [11:35:18]File name is /storage/ofd_packets/00034415 [11:35:18]Write 515 bytes [11:35:18]NVStorageSaveData done [11:35:18]OFDSenderStorePacket done [11:35:18]KKMCreateOFDPacket done [11:35:18]NVStorageSaveData kkm_last_timestamp [11:35:18]File name is /storage/kkm_last_timestamp [11:35:18]Write 4 bytes [11:35:18]NVStorageSaveData done [11:35:18]ExternCall_PrintAddStr [11:35:18]wPrintStart [11:35:18]Write to MH i2c: 01 00 00 92 07 99 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 07 00 [11:35:18]MH_I2C_Read... [11:35:18]OFD Sender: Processing packet 34415 [packets to send 8, broken 7] [11:35:18]ProducePacketName [11:35:18]name=ofd_packets/00034415 [11:35:18]OFD Sender: To server: pG, [11:35:18]CommunicateWithHost lk.salyk.kg:30040 [11:35:18]ConnectInit lk.salyk.kg [11:35:18]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 FF 0F AE [11:35:18]RasterBufferAndPrint [11:35:18]line Счет N : (3)184188 [11:35:18]line ИНН: 02508201610067 [11:35:18]line Контрольно-Кассовый Чек [11:35:18]line ПРОДАЖА [11:35:18]line Товар: 4700000160358 [11:35:18]line Вода Легенда 1л [11:35:18]line 1.000 * 50.00 [11:35:18]line = 50.00 [11:35:18]line НДС 12% НСП 1% [11:35:18]line > о реализуемом товаре [11:35:18]line Товар: 4700000160211 [11:35:18]line Вода Легенда 0,5л [11:35:18]line 1.000 * 40.00 [11:35:18]line = 40.00 [11:35:18]line НДС 12% НСП 1% [11:35:18]line > о реализуемом товаре [11:35:18]line Товар: 46196798 [11:35:18]line Сигареты Mevius Revo [11:35:18]line 1.000 * 155.00 [11:35:18]line = 155.00 [11:35:18]line НДС 12% НСП 1% [11:35:18]line > о реализуемом товаре [11:35:18]line ИТОГО: 245.00 [11:35:18]line НСП 1% : 2.16 [11:35:18]line НДС 12% : 26.02 [11:35:18]line Наличными: 245.00 [11:35:18]line Безнал.: 0.00 [11:35:18]line Место: АЗС № 120 "Партнер Нефть" [11:35:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:35:18]line СНО: Общий режим [11:35:18]line Чек 25 20.06.2024 11:35 [11:35:18]line Смена: 325 ФФД: 1.0 [11:35:18]line ЗНМ: 0300000172 [11:35:18]line РНМ: 0000000000092786 [11:35:18]line Версия ККМ: 001 [11:35:18]line ФМ: 0000000000875095 [11:35:18]line ФД: 34415 [11:35:18]line ФПД: 159853739416176 [11:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113517&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34415&fm=159853739416176&tin=02508201610067®Number=0000000000092786&sum=24500 [11:35:18]line 0 [11:35:18]written 0, free lines is 4095 [11:35:18]Connected sock=10 [11:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 E5 01 00 00 C4 0C DD 01 B4 A8 5A 03 01 00 03 00 D1 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F5 13 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6F 86 00 00 35 04 06 00 91 62 D9 5A 9A 70 16 BF E4 C4 B7 32 C3 B0 [11:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 44 78 47 00 DA 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 6F 86 00 00 F4 03 04 00 BF BA 73 66 B6 04 01 00 00 31 7F 7A F7 97 C1 F9 55 [11:35:18]CommunicateWithHost err = 0 [11:35:18]CheckOFDResponse [11:35:18]1017 (14) - 77093643461234 [11:35:18]1041 (16) - 0000000000875095 [11:35:18]1040 (4) - 34415 [11:35:18]1012 (4) - 20.06.2024 05:14 [11:35:18]1206 (1) - 0 [11:35:18]OFD Sender: Remove packet 34415 [11:35:18]ProducePacketName [11:35:18]name=ofd_packets/00034415 [11:35:18]NVStorageDeleteData [11:35:18]Write to MH i2c: 01 00 00 C6 07 CD [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 07 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 48 0C 28 [11:35:18]RasterBufferAndPrint [11:35:18]line [11:35:18]line [11:35:18]line [11:35:18]line [11:35:18]line [11:35:18]written 0, free lines is 3150 [11:35:18]MH_Cut [11:35:18]Write to MH i2c: D1 01 00 CD 07 01 A6 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: D1 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: D1 01 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: D1 01 00 CD 07 00 A5 [11:35:18]Write to MH i2c: 01 00 00 CE 07 D5 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:19]OFD Sender: No OFD packet to send [11:35:19]*** Cut start [11:35:19]*** Partial cut [11:35:19]*** CUTSNS_PIN = 1 [11:35:19]*** CUTSNS_PIN = 0 [11:35:19]*** Brake cut motor [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]*** Stop cut motor [11:35:20]*** Cut end [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [11:35:20]process_action close_receipt done [11:35:20]requested_data is exist [11:35:20]produce_requested_data [11:35:20]requested_item fm.sn is exist - process it [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 11 00 00 [11:35:20]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A5 [11:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:35:20]wFMCommunicate OK [11:35:20]requested_item fd.num is exist - process it [11:35:20]SAM_PROTO_GetFieldsCounters [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 13 00 00 [11:35:20]Write to MH i2c: E2 08 00 D0 07 80 13 00 00 00 00 00 00 53 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 62 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 62 00 D0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6F 86 00 00 0E 04 04 00 45 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 03 [11:35: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 6F 86 00 00 0E 04 04 00 45 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 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_GetFieldsCounters done [11:35:20]requested_item shift.num is exist - process it [11:35:20]requested_item shift.opened is exist - process it [11:35:20]req_shift_opened [11:35:20]FM_GetShiftState [11:35:20]SAM_PROTO_GetShiftState [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 13 01 00 [11:35:20]Write to MH i2c: E2 08 00 D1 07 80 13 01 00 00 00 00 00 55 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 D1 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 6D [11:35:20]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_GetShiftState done [11:35:20]FM_GetShiftState done [11:35:20]req_shift_opened done [11:35:20]requested_item shift.open_date is exist - process it [11:35:20]req_shift_open_date [11:35:20]req_shift_open_date done [11:35:20]produce_requested_data done [11:35:20]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34415,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:35:20]process_action_free close_receipt [11:35:20]json_value_free [11:35:20]json_value_free done [11:35:20]process_json_proto returns [11:35:20]Send response to host [11:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34415,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:35:20]free response buf [11:35:20]execute_script done [11:35:20]execute_script returns [11:35:20]free content buf [11:35:20]Sock 8.Close socket [11:35:20]Sock 8.Thread stoped [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:27]int [11:40:27]Write to MH i2c: 01 00 00 D2 07 D9 [11:40:27]*** FLAG_PRN_PAP2 set [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 D2 07 00 02 00 00 00 FF 0F F0 [11:40:27]state=0 [11:40:27]Cover opened [11:40:29]OFD Sender: No OFD packet to send [11:40:32]int [11:40:32]Write to MH i2c: 01 00 00 D3 07 DA [11:40:32]*** FLAG_PRN_PAP2 reset [11:40:32]Write i2c OK [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 07 00 [11:40:32]MH_I2C_Read... [11:40:32]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 FF 0F EF [11:40:32]state=3 [11:40:32]Cover closed [11:40:33]int [11:40:33]Write to MH i2c: 01 00 00 D4 07 DB [11:40:33]*** FLAG_PRN_KEY set [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 D4 07 00 08 00 00 00 FF 0F F8 [11:40:33]state=0 [11:40:33]Key pressed [11:40:33]Feed [11:40:33]Write to MH i2c: D8 00 00 D5 07 B3 [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D8 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D8 01 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: D8 01 00 D5 07 00 B4 [11:40:33]int [11:40:33]Write to MH i2c: 01 00 00 D6 07 DD [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: 01 07 00 D6 07 00 48 00 00 00 3C 00 68 [11:40:33]state=2 [11:40:33]Key pressed [11:40:33]int [11:40:33]Write to MH i2c: 01 00 00 D7 07 DE [11:40:34]*** FLAG_PRN_KEY reset [11:40:34]Write i2c OK [11:40:34]MH_I2C_Read... [11:40:34]Read from MH i2c: 01 [11:40:34]MH_I2C_Read... [11:40:34]Read from MH i2c: 01 07 00 [11:40:34]MH_I2C_Read... [11:40:34]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [11:40:34]state=2 [11:40:34]Stop feed [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:33]accept exits with 9 [11:47:33]New connection [11:47:33]New thread 3066510692 created [11:47:33]Thread 3066654052 joined [11:47:33]Waiting for new connection... [11:47:33] Sock 9.Parse request [11:47:33]Sock 9.Check first char [11:47:33]Sock 9.First char is OK [11:47:33]request: POST /json_proto HTTP/1.0 [11:47:33]Method: POST [11:47:33]URL: /json_proto [11:47:33]Method is POST - this is cgi request [11:47:33]url: /json_proto [11:47:33]query_string will be loaded in cgi processing [11:47:33]execute_cgi json_proto POST (null) [11:47:33]execute_cgi path=json_proto method=POST [11:47:33]POST find Content-Length [11:47:33]Host: 172.17.38.134:8080 [11:47:33]Content-Length: 2913 [11:47:33]Content-Type: application/json [11:47:33] [11:47:33]POST finish read [11:47:33]Found Content-Length = 2913 [11:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184189", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209741778", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u043E\u043B\u044C 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 857.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:33]execute_script... [11:47: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)184189", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 75.00, "quantity" : 3.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209741778", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u043E\u043B\u044C 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744502", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0421\u044B\u0440 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 857.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:33]POST & json_proto [11:47:33]process_json_proto [11:47:33]json parsed OK: [11:47:33]protocol is kg_v1.0 [11:47:33]action value=close_receipt [11:47:33]process_action close_receipt [11:47:33]cmd_close_receipt [11:47:33]MH_GetDate [11:47:33]Write to MH i2c: F0 00 00 D8 07 CE [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: F0 09 00 D8 07 00 D7 16 74 66 13 9C 7C 64 2D [11:47:33]GetLastDocTimeStamp 1718883317 [11:47:33]current date 1718884055 [11:47:33]FM_GetShiftState [11:47:33]SAM_PROTO_GetShiftState [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 01 00 [11:47:33]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:34]Read from MH i2c: E2 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 75 [11:47:34]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:47:34]wFMCommunicate OK [11:47:34]SAM_PROTO_GetShiftState done [11:47:34]FM_GetShiftState done [11:47:34]opened in 1718843069 [11:47:34]opened+sec_in_day 1718929469 [11:47:34]quantity*price = 9300 [11:47:34]sum+1 = 9301 [11:47:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189325 Холодный чай Fuse персик 0,5л 3.000 * 75.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209741778 Арахис BIG BOB Соль 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209745486 Арахис BIG BOB Сыр 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630056952082 Печенье Юбилейное Торжество 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209744502 Сухарики Флинт Сыр 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001150013 Сок Da-Da 1л апельсин 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 857.00 НСП 1% : 7.57 НДС 12% : 91.00 Наличными: 857.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 20.06.2024 11:47 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34416 ФПД: 152131987864696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114735&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34416&fm=152131987864696&tin=02508201610067®Number=0000000000092786&sum=85700 0 [11:47:35]StoreToDocumentArchive [11:47:35]shift 325 fd 34416 [11:47:35]save to /storage/0325/doc_00034416 [11:47:35]save last doc name /storage/0325/doc_00034416 to /storage/kkm_last_doc_name [11:47:35]save OK [11:47:35]Clear old archive folders... [11:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=1202 [11:47:35]tlvbuf is 00216BA0 [11:47:35]SAM_PROTO_ClearQueue [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 09 00 00 [11:47:35]Write to MH i2c: E2 08 00 E6 07 80 09 00 00 00 00 00 00 5F [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_ClearQueue done [11:47:35]KKMCreateOFDPacket [11:47:35]OFDProtocolAddRootSTLVToBuf [11:47:35]FM_MakeSignedData [11:47:35]FM_MakeSignedData [11:47:35]SAM_PROTO_SignData [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 01 02 [11:47:35]Write to MH i2c: E2 08 00 E7 07 80 0D 01 02 00 00 00 00 67 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=255 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 02 02 FA 03 00 B2 04 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 [11:47:35]Write to MH i2c: E2 02 01 E8 07 80 0D 02 02 FA 00 03 00 B2 04 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 00 9D [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=255 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 [11:47:36]Write to MH i2c: E2 02 01 E9 07 80 0D 02 02 FA 00 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 00 00 82 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=255 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 02 02 FA D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 [11:47:36]Write to MH i2c: E2 02 01 EA 07 80 0D 02 02 FA 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 00 00 BF [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=255 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 02 02 FA D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 [11:47:36]Write to MH i2c: E2 02 01 EB 07 80 0D 02 02 FA 00 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 00 00 DE [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [11:47:37]RAPDU: 90 00 [11:47:37]wFMCommunicate OK [11:47:37]wFMCommunicate request_size=211 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 0D 02 02 CE 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 16 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 70 86 00 00 35 04 06 00 8A 5C FD 18 7C 78 [11:47:37]Write to MH i2c: E2 D6 00 EC 07 80 0D 02 02 CE 00 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 16 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 70 86 00 00 35 04 06 00 8A 5C FD 18 7C 78 00 00 E5 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [11:47:37]RAPDU: 90 00 [11:47:37]wFMCommunicate OK [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 0D 03 02 [11:47:37]Write to MH i2c: E2 08 00 ED 07 80 0D 03 02 00 00 00 00 6F [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0B 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0B 00 ED 07 00 54 94 32 1E 41 25 1A 09 90 00 31 [11:47:37]RAPDU: 54 94 32 1E 41 25 1A 09 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_SignData done [11:47:37]FM_MakeSignedData done [11:47:37]CreateOFDProtocolMessage [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 11 00 00 [11:47:37]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C4 [11:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:47:37]wFMCommunicate OK [11:47:37]CreateOFDProtocolMessage done [11:47:37]OFDSenderStorePacket 34416 [11:47:37]StoreOFDPacket docnum=34416 [11:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C6 04 00 00 43 3D BE 04 73 3F 5A 03 01 00 03 00 B2 04 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 16 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 70 86 00 00 35 04 06 00 8A 5C FD 18 7C 78 54 94 32 1E 41 25 1A 09 [11:47:37]CheckFolder [11:47:37]dirname=/storage/ofd_packets [11:47:37]CheckFolder done [11:47:37]ProducePacketName [11:47:37]name=ofd_packets/00034416 [11:47:37]NVStorageSaveData ofd_packets/00034416 [11:47:37]File name is /storage/ofd_packets/00034416 [11:47:37]Write 1252 bytes [11:47:37]NVStorageSaveData done [11:47:37]OFDSenderStorePacket done [11:47:37]KKMCreateOFDPacket done [11:47:37]NVStorageSaveData kkm_last_timestamp [11:47:37]File name is /storage/kkm_last_timestamp [11:47:37]Write 4 bytes [11:47:37]NVStorageSaveData done [11:47:37]ExternCall_PrintAddStr [11:47:37]wPrintStart [11:47:37]Write to MH i2c: 01 00 00 EF 07 F6 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [11:47:37]RasterBufferAndPrint [11:47:37]line Счет N : (3)184189 [11:47:37]line ИНН: 02508201610067 [11:47:37]line Контрольно-Кассовый Чек [11:47:37]line ПРОДАЖА [11:47:37]line Товар: 4603290004862 [11:47:37]line Печ.сах.FORSITE Сэнд.шок-ор.вк [11:47:37]line 1.000 * 93.00 [11:47:37]line = 93.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 5449000189325 [11:47:37]line Холодный чай Fuse персик 0,5л [11:47:37]line 3.000 * 75.00 [11:47:37]line = 225.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 5449000005489 [11:47:37]line Вода Бонаква 1л б/г [11:47:37]line 1.000 * 50.00 [11:47:37]line = 50.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4870002326172 [11:47:37]line Вода ASU пит н.газ лимон ПЭТ 1л [11:47:37]line 1.000 * 100.00 [11:47:37]line = 100.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4870209741778 [11:47:37]line Арахис BIG BOB Соль 50 гр [11:47:37]line 1.000 * 60.00 [11:47:37]line = 60.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4870209745486 [11:47:37]line Арахис BIG BOB Сыр 50 гр [11:47:37]line 1.000 * 60.00 [11:47:37]line = 60.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4630056952082 [11:47:37]line Печенье Юбилейное Торжество 120г [11:47:37]line 1.000 * 59.00 [11:47:37]line = 59.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4870209744502 [11:47:37]line Сухарики Флинт Сыр 100 гр [11:47:37]line 1.000 * 60.00 [11:47:37]line = 60.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line Товар: 4870001150013 [11:47:37]line Сок Da-Da 1л апельсин [11:47:37]line 1.000 * 150.00 [11:47:37]line = 150.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line ИТОГО: 857.00 [11:47:37]line НСП 1% : 7.57 [11:47:37]line НДС 12% : 91.00 [11:47:37]line Наличными: 857.00 [11:47:37]line Безнал.: 0.00 [11:47:37]line Место: АЗС № 120 "Партнер Нефть" [11:47:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:47:37]line СНО: Общий режим [11:47:37]line Чек 26 20.06.2024 11:47 [11:47:37]line Смена: 325 ФФД: 1.0 [11:47:37]line ЗНМ: 0300000172 [11:47:37]line РНМ: 0000000000092786 [11:47:37]line Версия ККМ: 001 [11:47:37]line ФМ: 0000000000875095 [11:47:37]line ФД: 34416 [11:47:37]line ФПД: 152131987864696 [11:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114735&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34416&fm=152131987864696&tin=02508201610067®Number=0000000000092786&sum=85700 [11:47:37]line 0 [11:47:37]OFD Sender: Processing packet 34416 [packets to send 8, broken 7] [11:47:37]ProducePacketName [11:47:37]name=ofd_packets/00034416 [11:47:37]OFD Sender: To server: pG, [11:47:37]CommunicateWithHost lk.salyk.kg:30040 [11:47:37]ConnectInit lk.salyk.kg [11:47:37]written 0, free lines is 4095 [11:47:37]Connected sock=10 [11:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C6 04 00 00 43 3D BE 04 73 3F 5A 03 01 00 03 00 B2 04 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 30 32 06 04 2B 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A1 D1 8B D1 80 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 4E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 23 00 00 00 00 07 04 06 00 C4 4E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 16 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 70 86 00 00 35 04 06 00 8A 5C FD 18 7C 78 54 94 32 1E 41 25 1A 09 [11:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E5 A2 47 00 5E 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 35 30 39 35 10 04 04 00 70 86 00 00 F4 03 04 00 A3 BD 73 66 B6 04 01 00 00 80 E5 2B BA E7 2A A2 E3 [11:47:38]CommunicateWithHost err = 0 [11:47:38]CheckOFDResponse [11:47:38]1017 (14) - 77093643461234 [11:47:38]1041 (16) - 0000000000875095 [11:47:38]1040 (4) - 34416 [11:47:38]1012 (4) - 20.06.2024 05:26 [11:47:38]1206 (1) - 0 [11:47:38]OFD Sender: Remove packet 34416 [11:47:38]ProducePacketName [11:47:38]name=ofd_packets/00034416 [11:47:38]NVStorageDeleteData [11:47:38]Write to MH i2c: 01 00 00 4B 08 53 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 07 0A 6B [11:47:38]RasterBufferAndPrint [11:47:38]line [11:47:38]line [11:47:38]line [11:47:38]line [11:47:38]line [11:47:38]written 0, free lines is 2581 [11:47:38]MH_Cut [11:47:38]Write to MH i2c: D1 01 00 52 08 01 2C [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: D1 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: D1 01 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: D1 01 00 52 08 00 2B [11:47:38]Write to MH i2c: 01 00 00 53 08 5B [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]OFD Sender: No OFD packet to send [11:47:40]*** Cut start [11:47:40]*** Partial cut [11:47:40]*** CUTSNS_PIN = 1 [11:47:40]*** CUTSNS_PIN = 0 [11:47:40]*** Brake cut motor [11:47:40]Read from MH i2c: 01 [11:47:40]MH_I2C_Read... [11:47:40]*** Stop cut motor [11:47:40]*** Cut end [11:47:40]Read from MH i2c: 01 07 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [11:47:40]process_action close_receipt done [11:47:40]requested_data is exist [11:47:40]produce_requested_data [11:47:40]requested_item fm.sn is exist - process it [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 11 00 00 [11:47:40]Write to MH i2c: E2 08 00 54 08 80 11 00 00 00 00 00 00 D6 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 17 00 54 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2B [11:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:47:40]wFMCommunicate OK [11:47:40]requested_item fd.num is exist - process it [11:47:40]SAM_PROTO_GetFieldsCounters [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 13 00 00 [11:47:40]Write to MH i2c: E2 08 00 55 08 80 13 00 00 00 00 00 00 D9 [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 62 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 62 00 55 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 70 86 00 00 0E 04 04 00 45 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 8D [11:47: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 70 86 00 00 0E 04 04 00 45 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 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_GetFieldsCounters done [11:47:40]requested_item shift.num is exist - process it [11:47:40]requested_item shift.opened is exist - process it [11:47:40]req_shift_opened [11:47:40]FM_GetShiftState [11:47:40]SAM_PROTO_GetShiftState [11:47:40]wFMCommunicate request_size=4 [11:47:40]MH_SAM_APDU [11:47:40]CAPDU: 80 13 01 00 [11:47:40]Write to MH i2c: E2 08 00 56 08 80 13 01 00 00 00 00 00 DB [11:47:40]Write i2c OK [11:47:40]MH_I2C_Read... [11:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:40]Read from MH i2c: E2 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0E 00 [11:47:40]MH_I2C_Read... [11:47:40]Read from MH i2c: E2 0E 00 56 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F3 [11:47:40]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:47:40]wFMCommunicate OK [11:47:40]SAM_PROTO_GetShiftState done [11:47:40]FM_GetShiftState done [11:47:40]req_shift_opened done [11:47:40]requested_item shift.open_date is exist - process it [11:47:40]req_shift_open_date [11:47:40]req_shift_open_date done [11:47:40]produce_requested_data done [11:47:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34416,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:47:40]process_action_free close_receipt [11:47:40]json_value_free [11:47:40]json_value_free done [11:47:40]process_json_proto returns [11:47:40]Send response to host [11:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34416,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:47:40]free response buf [11:47:40]execute_script done [11:47:40]execute_script returns [11:47:40]free content buf [11:47:40]Sock 9.Close socket [11:47:40]Sock 9.Thread stoped [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]accept exits with 8 [11:55:54]New connection [11:55:54]New thread 3066654052 created [11:55:54]Thread 3066510692 joined [11:55:54]Waiting for new connection... [11:55:54] Sock 8.Parse request [11:55:54]Sock 8.Check first char [11:55:54]Sock 8.First char is OK [11:55:54]request: POST /json_proto HTTP/1.0 [11:55:54]Method: POST [11:55:54]URL: /json_proto [11:55:54]Method is POST - this is cgi request [11:55:54]url: /json_proto [11:55:54]query_string will be loaded in cgi processing [11:55:54]execute_cgi json_proto POST (null) [11:55:54]execute_cgi path=json_proto method=POST [11:55:54]POST find Content-Length [11:55:54]Host: 172.17.38.134:8080 [11:55:54]Content-Length: 1492 [11:55:54]Content-Type: application/json [11:55:54] [11:55:54]POST finish read [11:55:54]Found Content-Length = 1492 [11:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184190", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209741778", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u043E\u043B\u044C 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:54]execute_script... [11:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184190", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209741778", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u043E\u043B\u044C 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:54]POST & json_proto [11:55:54]process_json_proto [11:55:54]json parsed OK: [11:55:54]protocol is kg_v1.0 [11:55:54]action value=close_receipt [11:55:54]process_action close_receipt [11:55:54]cmd_close_receipt [11:55:54]MH_GetDate [11:55:54]Write to MH i2c: F0 00 00 57 08 4E [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: F0 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: F0 09 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: F0 09 00 57 08 00 CB 18 74 66 13 9C 7C 64 A3 [11:55:54]GetLastDocTimeStamp 1718884055 [11:55:54]current date 1718884555 [11:55:54]FM_GetShiftState [11:55:54]SAM_PROTO_GetShiftState [11:55:54]wFMCommunicate request_size=4 [11:55:54]MH_SAM_APDU [11:55:54]CAPDU: 80 13 01 00 [11:55:54]Write to MH i2c: E2 08 00 58 08 80 13 01 00 00 00 00 00 DD [11:55:54]OFD Sender: No OFD packet to send [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0E 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0E 00 58 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F5 [11:55:54]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:55:54]wFMCommunicate OK [11:55:54]SAM_PROTO_GetShiftState done [11:55:54]FM_GetShiftState done [11:55:54]opened in 1718843069 [11:55:54]opened+sec_in_day 1718929469 [11:55:54]quantity*price = 12000 [11:55:54]sum+1 = 12001 [11:55:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209741778 Арахис BIG BOB Соль 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000417211002 Шоколад Ritter SPORT мол карам.мусс 100г 1.000 * 209.00 = 209.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 482.00 НСП 1% : 4.26 НДС 12% : 51.18 Наличными: 482.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 27 20.06.2024 11:55 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34417 ФПД: 240848174102164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115556&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34417&fm=240848174102164&tin=02508201610067®Number=0000000000092786&sum=48200 0 [11:55:55]StoreToDocumentArchive [11:55:55]shift 325 fd 34417 [11:55:55]save to /storage/0325/doc_00034417 [11:55:55]save last doc name /storage/0325/doc_00034417 to /storage/kkm_last_doc_name [11:55:55]save OK [11:55:55]Clear old archive folders... [11:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=631 [11:55:55]tlvbuf is 001E80E0 [11:55:55]SAM_PROTO_ClearQueue [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 09 00 00 [11:55:55]Write to MH i2c: E2 08 00 65 08 80 09 00 00 00 00 00 00 DF [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]SAM_PROTO_ClearQueue done [11:55:55]KKMCreateOFDPacket [11:55:55]OFDProtocolAddRootSTLVToBuf [11:55:55]FM_MakeSignedData [11:55:55]FM_MakeSignedData [11:55:55]SAM_PROTO_SignData [11:55:55]wFMCommunicate request_size=4 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 0D 01 02 [11:55:55]Write to MH i2c: E2 08 00 66 08 80 0D 01 02 00 00 00 00 E7 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:55]Read from MH i2c: E2 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 [11:55:55]MH_I2C_Read... [11:55:55]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [11:55:55]RAPDU: 90 00 [11:55:55]wFMCommunicate OK [11:55:55]wFMCommunicate request_size=255 [11:55:55]MH_SAM_APDU [11:55:55]CAPDU: 80 0D 02 02 FA 03 00 77 02 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 [11:55:55]Write to MH i2c: E2 02 01 67 08 80 0D 02 02 FA 00 03 00 77 02 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 00 00 65 [11:55:55]Write i2c OK [11:55:55]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=255 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 02 02 FA 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 01 00 [11:55:56]Write to MH i2c: E2 02 01 68 08 80 0D 02 02 FA 00 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 01 00 00 00 E3 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=140 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CC 18 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 71 86 00 00 35 04 06 00 DB 0C D5 DC B6 94 [11:55:56]Write to MH i2c: E2 8F 00 69 08 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CC 18 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 71 86 00 00 35 04 06 00 DB 0C D5 DC B6 94 00 00 3C [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [11:55:56]RAPDU: 90 00 [11:55:56]wFMCommunicate OK [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 0D 03 02 [11:55:56]Write to MH i2c: E2 08 00 6A 08 80 0D 03 02 00 00 00 00 ED [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0B 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 0B 00 6A 08 00 86 F3 6D BD F0 10 5F D3 90 00 C3 [11:55:56]RAPDU: 86 F3 6D BD F0 10 5F D3 90 00 [11:55:56]wFMCommunicate OK [11:55:56]SAM_PROTO_SignData done [11:55:56]FM_MakeSignedData done [11:55:56]CreateOFDProtocolMessage [11:55:56]wFMCommunicate request_size=4 [11:55:56]MH_SAM_APDU [11:55:56]CAPDU: 80 11 00 00 [11:55:56]Write to MH i2c: E2 08 00 6B 08 80 11 00 00 00 00 00 00 ED [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:56]Read from MH i2c: E2 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: E2 17 00 6B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 42 [11:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:55:56]wFMCommunicate OK [11:55:56]CreateOFDProtocolMessage done [11:55:56]OFDSenderStorePacket 34417 [11:55:56]StoreOFDPacket docnum=34417 [11:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8B 02 00 00 9B D6 83 02 B3 12 5A 03 01 00 03 00 77 02 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CC 18 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 71 86 00 00 35 04 06 00 DB 0C D5 DC B6 94 86 F3 6D BD F0 10 5F D3 [11:55:56]CheckFolder [11:55:56]dirname=/storage/ofd_packets [11:55:56]CheckFolder done [11:55:56]ProducePacketName [11:55:56]name=ofd_packets/00034417 [11:55:56]NVStorageSaveData ofd_packets/00034417 [11:55:56]File name is /storage/ofd_packets/00034417 [11:55:56]Write 681 bytes [11:55:56]NVStorageSaveData done [11:55:56]OFDSenderStorePacket done [11:55:56]KKMCreateOFDPacket done [11:55:56]NVStorageSaveData kkm_last_timestamp [11:55:56]File name is /storage/kkm_last_timestamp [11:55:56]Write 4 bytes [11:55:56]NVStorageSaveData done [11:55:56]ExternCall_PrintAddStr [11:55:56]wPrintStart [11:55:56]Write to MH i2c: 01 00 00 6C 08 74 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 FF 0F 89 [11:55:56]RasterBufferAndPrint [11:55:56]line Счет N : (3)184190 [11:55:56]line ИНН: 02508201610067 [11:55:56]line Контрольно-Кассовый Чек [11:55:56]line ПРОДАЖА [11:55:56]line Товар: 4700000160204 [11:55:56]line Вода Легенда 1,5л [11:55:56]line 2.000 * 60.00 [11:55:56]line = 120.00 [11:55:56]line НДС 12% НСП 1% [11:55:56]line > о реализуемом товаре [11:55:56]line Товар: 4603290004862 [11:55:56]line Печ.сах.FORSITE Сэнд.шок-ор.вк [11:55:56]line 1.000 * 93.00 [11:55:56]line = 93.00 [11:55:56]line НДС 12% НСП 1% [11:55:56]line > о реализуемом товаре [11:55:56]line Товар: 4870209741778 [11:55:56]line Арахис BIG BOB Соль 50 гр [11:55:56]line 1.000 * 60.00 [11:55:56]line = 60.00 [11:55:56]line НДС 12% НСП 1% [11:55:56]line > о реализуемом товаре [11:55:56]line Товар: 4000417211002 [11:55:56]line Шоколад Ritter SPORT мол карам.мусс 100г [11:55:56]line 1.000 * 209.00 [11:55:56]line = 209.00 [11:55:56]line НДС 12% НСП 1% [11:55:56]line > о реализуемом товаре [11:55:56]line ИТОГО: 482.00 [11:55:56]line НСП 1% : 4.26 [11:55:56]line НДС 12% : 51.18 [11:55:56]line Наличными: 482.00 [11:55:56]line Безнал.: 0.00 [11:55:56]line Место: АЗС № 120 "Партнер Нефть" [11:55:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:55:56]line СНО: Общий режим [11:55:56]line Чек 27 20.06.2024 11:55 [11:55:56]line Смена: 325 ФФД: 1.0 [11:55:56]line ЗНМ: 0300000172 [11:55:56]line РНМ: 0000000000092786 [11:55:56]line Версия ККМ: 001 [11:55:56]line ФМ: 0000000000875095 [11:55:56]line ФД: 34417 [11:55:56]line ФПД: 240848174102164 [11:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115556&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34417&fm=240848174102164&tin=02508201610067®Number=0000000000092786&sum=48200 [11:55:56]OFD Sender: Processing packet 34417 [packets to send 8, broken 7] [11:55:56]ProducePacketName [11:55:56]name=ofd_packets/00034417 [11:55:56]OFD Sender: To server: pG, [11:55:56]CommunicateWithHost lk.salyk.kg:30040 [11:55:56]ConnectInit lk.salyk.kg [11:55:56]line 0 [11:55:56]written 0, free lines is 4095 [11:55:57]Connected sock=10 [11:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8B 02 00 00 9B D6 83 02 B3 12 5A 03 01 00 03 00 77 02 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 31 37 37 38 06 04 25 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D0 BE D0 BB D1 8C 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 13 00 00 00 00 07 04 06 00 48 BC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CC 18 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 71 86 00 00 35 04 06 00 DB 0C D5 DC B6 94 86 F3 6D BD F0 10 5F D3 [11:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 28 27 47 00 C8 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 35 30 39 35 10 04 04 00 71 86 00 00 F4 03 04 00 96 BF 73 66 B6 04 01 00 00 01 F1 FF E7 0E DA C7 6B [11:55:57]CommunicateWithHost err = 0 [11:55:57]CheckOFDResponse [11:55:57]1017 (14) - 77093643461234 [11:55:57]1041 (16) - 0000000000875095 [11:55:57]1040 (4) - 34417 [11:55:57]1012 (4) - 20.06.2024 05:35 [11:55:57]1206 (1) - 0 [11:55:57]OFD Sender: Remove packet 34417 [11:55:57]ProducePacketName [11:55:57]name=ofd_packets/00034417 [11:55:57]NVStorageDeleteData [11:55:57]Write to MH i2c: 01 00 00 A8 08 B0 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 07 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 E7 0B A9 [11:55:57]RasterBufferAndPrint [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]line [11:55:57]written 0, free lines is 3056 [11:55:57]MH_Cut [11:55:57]Write to MH i2c: D1 01 00 AF 08 01 89 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 01 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: D1 01 00 AF 08 00 88 [11:55:57]Write to MH i2c: 01 00 00 B0 08 B8 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]OFD Sender: No OFD packet to send [11:55:58]*** Cut start [11:55:58]*** Partial cut [11:55:58]*** CUTSNS_PIN = 1 [11:55:58]*** CUTSNS_PIN = 0 [11:55:58]*** Brake cut motor [11:55:59]Read from MH i2c: 01 [11:55:59]MH_I2C_Read... [11:55:59]*** Stop cut motor [11:55:59]*** Cut end [11:55:59]Read from MH i2c: 01 07 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [11:55:59]process_action close_receipt done [11:55:59]requested_data is exist [11:55:59]produce_requested_data [11:55:59]requested_item fm.sn is exist - process it [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 11 00 00 [11:55:59]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 17 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 88 [11:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:55:59]wFMCommunicate OK [11:55:59]requested_item fd.num is exist - process it [11:55:59]SAM_PROTO_GetFieldsCounters [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 13 00 00 [11:55:59]Write to MH i2c: E2 08 00 B2 08 80 13 00 00 00 00 00 00 36 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 62 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 62 00 B2 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 71 86 00 00 0E 04 04 00 45 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 EE [11:55: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 71 86 00 00 0E 04 04 00 45 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 [11:55:59]wFMCommunicate OK [11:55:59]SAM_PROTO_GetFieldsCounters done [11:55:59]requested_item shift.num is exist - process it [11:55:59]requested_item shift.opened is exist - process it [11:55:59]req_shift_opened [11:55:59]FM_GetShiftState [11:55:59]SAM_PROTO_GetShiftState [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 13 01 00 [11:55:59]Write to MH i2c: E2 08 00 B3 08 80 13 01 00 00 00 00 00 38 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0E 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0E 00 B3 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 50 [11:55:59]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:55:59]wFMCommunicate OK [11:55:59]SAM_PROTO_GetShiftState done [11:55:59]FM_GetShiftState done [11:55:59]req_shift_opened done [11:55:59]requested_item shift.open_date is exist - process it [11:55:59]req_shift_open_date [11:55:59]req_shift_open_date done [11:55:59]produce_requested_data done [11:55:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34417,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:55:59]process_action_free close_receipt [11:55:59]json_value_free [11:55:59]json_value_free done [11:55:59]process_json_proto returns [11:55:59]Send response to host [11:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34417,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:55:59]free response buf [11:55:59]execute_script done [11:55:59]execute_script returns [11:55:59]free content buf [11:55:59]Sock 8.Close socket [11:55:59]Sock 8.Thread stoped [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:53]accept exits with 9 [11:57:53]New connection [11:57:53]New thread 3066510692 created [11:57:53]Thread 3066654052 joined [11:57:53]Waiting for new connection... [11:57:53] Sock 9.Parse request [11:57:53]Sock 9.Check first char [11:57:53]Sock 9.First char is OK [11:57:53]request: POST /json_proto HTTP/1.0 [11:57:53]Method: POST [11:57:53]URL: /json_proto [11:57:53]Method is POST - this is cgi request [11:57:53]url: /json_proto [11:57:53]query_string will be loaded in cgi processing [11:57:53]execute_cgi json_proto POST (null) [11:57:53]execute_cgi path=json_proto method=POST [11:57:53]POST find Content-Length [11:57:53]Host: 172.17.38.134:8080 [11:57:53]Content-Length: 630 [11:57:53]Content-Type: application/json [11:57:53] [11:57:53]POST finish read [11:57:53]Found Content-Length = 630 [11:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184191", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:53]execute_script... [11:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184191", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:53]POST & json_proto [11:57:53]process_json_proto [11:57:53]json parsed OK: [11:57:53]protocol is kg_v1.0 [11:57:53]action value=close_receipt [11:57:53]process_action close_receipt [11:57:53]cmd_close_receipt [11:57:53]MH_GetDate [11:57:53]Write to MH i2c: F0 00 00 B4 08 AB [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: F0 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: F0 09 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: F0 09 00 B4 08 00 43 19 74 66 13 9C 7C 64 79 [11:57:53]GetLastDocTimeStamp 1718884556 [11:57:53]current date 1718884675 [11:57:53]FM_GetShiftState [11:57:53]SAM_PROTO_GetShiftState [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 13 01 00 [11:57:53]Write to MH i2c: E2 08 00 B5 08 80 13 01 00 00 00 00 00 3A [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0E 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0E 00 B5 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 52 [11:57:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:57:53]wFMCommunicate OK [11:57:53]SAM_PROTO_GetShiftState done [11:57:53]FM_GetShiftState done [11:57:53]opened in 1718843069 [11:57:53]opened+sec_in_day 1718929469 [11:57:53]quantity*price = 5000 [11:57:53]sum+1 = 5001 [11:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 20.06.2024 11:57 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34418 ФПД: 99918732415077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115755&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34418&fm=99918732415077&tin=02508201610067®Number=0000000000092786&sum=5000 0 [11:57:54]StoreToDocumentArchive [11:57:54]shift 325 fd 34418 [11:57:54]save to /storage/0325/doc_00034418 [11:57:54]save last doc name /storage/0325/doc_00034418 to /storage/kkm_last_doc_name [11:57:54]save OK [11:57:54]Clear old archive folders... [11:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:57:54]tlvbuf is 001F85A0 [11:57:54]SAM_PROTO_ClearQueue [11:57:54]wFMCommunicate request_size=4 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 09 00 00 [11:57:54]Write to MH i2c: E2 08 00 C2 08 80 09 00 00 00 00 00 00 3C [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:54]Read from MH i2c: E2 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 03 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [11:57:54]RAPDU: 90 00 [11:57:54]wFMCommunicate OK [11:57:54]SAM_PROTO_ClearQueue done [11:57:54]KKMCreateOFDPacket [11:57:54]OFDProtocolAddRootSTLVToBuf [11:57:54]FM_MakeSignedData [11:57:54]FM_MakeSignedData [11:57:54]SAM_PROTO_SignData [11:57:54]wFMCommunicate request_size=4 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 0D 01 02 [11:57:54]Write to MH i2c: E2 08 00 C3 08 80 0D 01 02 00 00 00 00 44 [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:54]Read from MH i2c: E2 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 03 00 [11:57:54]MH_I2C_Read... [11:57:54]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [11:57:54]RAPDU: 90 00 [11:57:54]wFMCommunicate OK [11:57:54]wFMCommunicate request_size=255 [11:57:54]MH_SAM_APDU [11:57:54]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:57:54]Write to MH i2c: E2 02 01 C4 08 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 FA [11:57:54]Write i2c OK [11:57:54]MH_I2C_Read... [11:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:55]Read from MH i2c: E2 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 03 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [11:57:55]RAPDU: 90 00 [11:57:55]wFMCommunicate OK [11:57:55]wFMCommunicate request_size=28 [11:57:55]MH_SAM_APDU [11:57:55]CAPDU: 80 0D 02 02 17 37 35 30 39 35 10 04 04 00 72 86 00 00 35 04 06 00 5A E0 24 8D 50 65 [11:57:55]Write to MH i2c: E2 1F 00 C5 08 80 0D 02 02 17 00 37 35 30 39 35 10 04 04 00 72 86 00 00 35 04 06 00 5A E0 24 8D 50 65 00 00 6E [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:55]Read from MH i2c: E2 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 03 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [11:57:55]RAPDU: 90 00 [11:57:55]wFMCommunicate OK [11:57:55]wFMCommunicate request_size=4 [11:57:55]MH_SAM_APDU [11:57:55]CAPDU: 80 0D 03 02 [11:57:55]Write to MH i2c: E2 08 00 C6 08 80 0D 03 02 00 00 00 00 49 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:55]Read from MH i2c: E2 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 0B 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 0B 00 C6 08 00 BD 87 58 1F 62 D5 30 27 90 00 93 [11:57:55]RAPDU: BD 87 58 1F 62 D5 30 27 90 00 [11:57:55]wFMCommunicate OK [11:57:55]SAM_PROTO_SignData done [11:57:55]FM_MakeSignedData done [11:57:55]CreateOFDProtocolMessage [11:57:55]wFMCommunicate request_size=4 [11:57:55]MH_SAM_APDU [11:57:55]CAPDU: 80 11 00 00 [11:57:55]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:55]Read from MH i2c: E2 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 17 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9E [11:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:57:55]wFMCommunicate OK [11:57:55]CreateOFDProtocolMessage done [11:57:55]OFDSenderStorePacket 34418 [11:57:55]StoreOFDPacket docnum=34418 [11:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 B2 53 19 01 22 C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 72 86 00 00 35 04 06 00 5A E0 24 8D 50 65 BD 87 58 1F 62 D5 30 27 [11:57:55]CheckFolder [11:57:55]dirname=/storage/ofd_packets [11:57:55]CheckFolder done [11:57:55]ProducePacketName [11:57:55]name=ofd_packets/00034418 [11:57:55]NVStorageSaveData ofd_packets/00034418 [11:57:55]File name is /storage/ofd_packets/00034418 [11:57:55]Write 319 bytes [11:57:55]NVStorageSaveData done [11:57:55]OFDSenderStorePacket done [11:57:55]KKMCreateOFDPacket done [11:57:55]NVStorageSaveData kkm_last_timestamp [11:57:55]File name is /storage/kkm_last_timestamp [11:57:55]Write 4 bytes [11:57:55]NVStorageSaveData done [11:57:55]ExternCall_PrintAddStr [11:57:55]wPrintStart [11:57:55]Write to MH i2c: 01 00 00 C8 08 D0 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: 01 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: 01 07 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [11:57:55]RasterBufferAndPrint [11:57:55]line Счет N : (3)184191 [11:57:55]line ИНН: 02508201610067 [11:57:55]line Контрольно-Кассовый Чек [11:57:55]line ПРОДАЖА [11:57:55]line Товар: 4700000160358 [11:57:55]line Вода Легенда 1л [11:57:55]line 1.000 * 50.00 [11:57:55]line = 50.00 [11:57:55]line НДС 12% НСП 1% [11:57:55]line > о реализуемом товаре [11:57:55]line ИТОГО: 50.00 [11:57:55]line НСП 1% : 0.44 [11:57:55]line НДС 12% : 5.31 [11:57:55]line Наличными: 50.00 [11:57:55]line Безнал.: 0.00 [11:57:55]line Место: АЗС № 120 "Партнер Нефть" [11:57:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:57:55]line СНО: Общий режим [11:57:55]line Чек 28 20.06.2024 11:57 [11:57:55]line Смена: 325 ФФД: 1.0 [11:57:55]line ЗНМ: 0300000172 [11:57:55]line РНМ: 0000000000092786 [11:57:55]line Версия ККМ: 001 [11:57:55]line ФМ: 0000000000875095 [11:57:55]line ФД: 34418 [11:57:55]line ФПД: 99918732415077 [11:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115755&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34418&fm=99918732415077&tin=02508201610067®Number=0000000000092786&sum=5000 [11:57:55]OFD Sender: Processing packet 34418 [packets to send 8, broken 7] [11:57:55]ProducePacketName [11:57:55]name=ofd_packets/00034418 [11:57:55]OFD Sender: To server: pG, [11:57:55]CommunicateWithHost lk.salyk.kg:30040 [11:57:55]ConnectInit lk.salyk.kg [11:57:55]line 0 [11:57:55]written 0, free lines is 4095 [11:57:55]Connected sock=11 [11:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 B2 53 19 01 22 C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 72 86 00 00 35 04 06 00 5A E0 24 8D 50 65 BD 87 58 1F 62 D5 30 27 [11:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 33 27 47 00 85 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 35 30 39 35 10 04 04 00 72 86 00 00 F4 03 04 00 0D C0 73 66 B6 04 01 00 00 5D E5 3F 3F E7 61 2E 8F [11:57:56]CommunicateWithHost err = 0 [11:57:56]CheckOFDResponse [11:57:56]1017 (14) - 77093643461234 [11:57:56]1041 (16) - 0000000000875095 [11:57:56]1040 (4) - 34418 [11:57:56]1012 (4) - 20.06.2024 05:37 [11:57:56]1206 (1) - 0 [11:57:56]OFD Sender: Remove packet 34418 [11:57:56]ProducePacketName [11:57:56]name=ofd_packets/00034418 [11:57:56]NVStorageDeleteData [11:57:56]Write to MH i2c: 01 00 00 F0 08 F8 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 07 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 09 0D 15 [11:57:56]RasterBufferAndPrint [11:57:56]line [11:57:56]line [11:57:56]line [11:57:56]line [11:57:56]line [11:57:56]written 0, free lines is 3343 [11:57:56]MH_Cut [11:57:56]Write to MH i2c: D1 01 00 F7 08 01 D1 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: D1 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: D1 01 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: D1 01 00 F7 08 00 D0 [11:57:56]Write to MH i2c: 01 00 00 F8 08 00 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]OFD Sender: No OFD packet to send [11:57:56]*** Cut start [11:57:56]*** Partial cut [11:57:56]*** CUTSNS_PIN = 1 [11:57:56]*** CUTSNS_PIN = 0 [11:57:57]*** Brake cut motor [11:57:57]Read from MH i2c: 01 [11:57:57]MH_I2C_Read... [11:57:57]*** Stop cut motor [11:57:57]*** Cut end [11:57:57]Read from MH i2c: 01 07 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [11:57:57]process_action close_receipt done [11:57:57]requested_data is exist [11:57:57]produce_requested_data [11:57:57]requested_item fm.sn is exist - process it [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 11 00 00 [11:57:57]Write to MH i2c: E2 08 00 F9 08 80 11 00 00 00 00 00 00 7B [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 F9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D0 [11:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:57:57]wFMCommunicate OK [11:57:57]requested_item fd.num is exist - process it [11:57:57]SAM_PROTO_GetFieldsCounters [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 13 00 00 [11:57:57]Write to MH i2c: E2 08 00 FA 08 80 13 00 00 00 00 00 00 7E [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 62 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 62 00 FA 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 72 86 00 00 0E 04 04 00 45 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 3A [11:57: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 72 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_GetFieldsCounters done [11:57:57]requested_item shift.num is exist - process it [11:57:57]requested_item shift.opened is exist - process it [11:57:57]req_shift_opened [11:57:57]FM_GetShiftState [11:57:57]SAM_PROTO_GetShiftState [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 13 01 00 [11:57:57]Write to MH i2c: E2 08 00 FB 08 80 13 01 00 00 00 00 00 80 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0E 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0E 00 FB 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 98 [11:57:57]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_GetShiftState done [11:57:57]FM_GetShiftState done [11:57:57]req_shift_opened done [11:57:57]requested_item shift.open_date is exist - process it [11:57:57]req_shift_open_date [11:57:57]req_shift_open_date done [11:57:57]produce_requested_data done [11:57:57]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34418,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:57:57]process_action_free close_receipt [11:57:57]json_value_free [11:57:57]json_value_free done [11:57:57]process_json_proto returns [11:57:57]Send response to host [11:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34418,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:57:57]free response buf [11:57:57]execute_script done [11:57:57]execute_script returns [11:57:57]free content buf [11:57:57]Sock 9.Close socket [11:57:57]Sock 9.Thread stoped [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:22]accept exits with 8 [11:58:22]New connection [11:58:22]New thread 3066654052 created [11:58:22]Thread 3066510692 joined [11:58:22]Waiting for new connection... [11:58:22] Sock 8.Parse request [11:58:22]Sock 8.Check first char [11:58:22]Sock 8.First char is OK [11:58:22]request: POST /json_proto HTTP/1.0 [11:58:22]Method: POST [11:58:22]URL: /json_proto [11:58:22]Method is POST - this is cgi request [11:58:22]url: /json_proto [11:58:22]query_string will be loaded in cgi processing [11:58:22]execute_cgi json_proto POST (null) [11:58:22]execute_cgi path=json_proto method=POST [11:58:22]POST find Content-Length [11:58:22]Host: 172.17.38.134:8080 [11:58:22]Content-Length: 626 [11:58:22]Content-Type: application/json [11:58:22] [11:58:22]POST finish read [11:58:22]Found Content-Length = 626 [11:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184192", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 10.000, "sum" : 1400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:22]execute_script... [11:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184192", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 10.000, "sum" : 1400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:22]POST & json_proto [11:58:22]process_json_proto [11:58:22]json parsed OK: [11:58:22]protocol is kg_v1.0 [11:58:22]action value=close_receipt [11:58:22]process_action close_receipt [11:58:22]cmd_close_receipt [11:58:22]MH_GetDate [11:58:22]Write to MH i2c: F0 00 00 FC 08 F3 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 09 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 09 00 FC 08 00 60 19 74 66 13 9C 7C 64 DE [11:58:22]GetLastDocTimeStamp 1718884675 [11:58:22]current date 1718884704 [11:58:22]FM_GetShiftState [11:58:22]SAM_PROTO_GetShiftState [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 13 01 00 [11:58:22]Write to MH i2c: E2 08 00 FD 08 80 13 01 00 00 00 00 00 82 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 FD 08 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 9A [11:58:22]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_GetShiftState done [11:58:22]FM_GetShiftState done [11:58:22]opened in 1718843069 [11:58:22]opened+sec_in_day 1718929469 [11:58:22]quantity*price = 140000 [11:58:22]sum+1 = 140001 [11:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.00 НСП 1% : 12.39 НДС 12% : 148.67 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 20.06.2024 11:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34419 ФПД: 122896566120457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115824&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34419&fm=122896566120457&tin=02508201610067®Number=0000000000092786&sum=140000 0 [11:58:23]StoreToDocumentArchive [11:58:23]shift 325 fd 34419 [11:58:23]save to /storage/0325/doc_00034419 [11:58:23]save last doc name /storage/0325/doc_00034419 to /storage/kkm_last_doc_name [11:58:23]save OK [11:58:23]Clear old archive folders... [11:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:58:23]tlvbuf is 001F7F80 [11:58:23]SAM_PROTO_ClearQueue [11:58:23]wFMCommunicate request_size=4 [11:58:23]MH_SAM_APDU [11:58:23]CAPDU: 80 09 00 00 [11:58:23]Write to MH i2c: E2 08 00 0A 09 80 09 00 00 00 00 00 00 85 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:23]Read from MH i2c: E2 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 0A 09 00 90 00 87 [11:58:23]RAPDU: 90 00 [11:58:23]wFMCommunicate OK [11:58:23]SAM_PROTO_ClearQueue done [11:58:23]KKMCreateOFDPacket [11:58:23]OFDProtocolAddRootSTLVToBuf [11:58:23]FM_MakeSignedData [11:58:23]FM_MakeSignedData [11:58:23]SAM_PROTO_SignData [11:58:23]wFMCommunicate request_size=4 [11:58:23]MH_SAM_APDU [11:58:23]CAPDU: 80 0D 01 02 [11:58:23]Write to MH i2c: E2 08 00 0B 09 80 0D 01 02 00 00 00 00 8D [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:23]Read from MH i2c: E2 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 0B 09 00 90 00 88 [11:58:23]RAPDU: 90 00 [11:58:23]wFMCommunicate OK [11:58:23]wFMCommunicate request_size=255 [11:58:23]MH_SAM_APDU [11:58:23]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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 [11:58:23]Write to MH i2c: E2 02 01 0C 09 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 00 00 58 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [11:58:24]RAPDU: 90 00 [11:58:24]wFMCommunicate OK [11:58:24]wFMCommunicate request_size=34 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 73 86 00 00 35 04 06 00 6F C6 16 2A F0 09 [11:58:24]Write to MH i2c: E2 25 00 0D 09 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 73 86 00 00 35 04 06 00 6F C6 16 2A F0 09 00 00 BA [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [11:58:24]RAPDU: 90 00 [11:58:24]wFMCommunicate OK [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 0D 03 02 [11:58:24]Write to MH i2c: E2 08 00 0E 09 80 0D 03 02 00 00 00 00 92 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 0B 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 0B 00 0E 09 00 E8 D7 30 32 54 69 2D 43 90 00 E1 [11:58:24]RAPDU: E8 D7 30 32 54 69 2D 43 90 00 [11:58:24]wFMCommunicate OK [11:58:24]SAM_PROTO_SignData done [11:58:24]FM_MakeSignedData done [11:58:24]CreateOFDProtocolMessage [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 11 00 00 [11:58:24]Write to MH i2c: E2 08 00 0F 09 80 11 00 00 00 00 00 00 92 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 0F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E7 [11:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:58:24]wFMCommunicate OK [11:58:24]CreateOFDProtocolMessage done [11:58:24]OFDSenderStorePacket 34419 [11:58:24]StoreOFDPacket docnum=34419 [11:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 96 3A 1F 01 5C B9 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 73 86 00 00 35 04 06 00 6F C6 16 2A F0 09 E8 D7 30 32 54 69 2D 43 [11:58:24]CheckFolder [11:58:24]dirname=/storage/ofd_packets [11:58:24]CheckFolder done [11:58:24]ProducePacketName [11:58:24]name=ofd_packets/00034419 [11:58:24]NVStorageSaveData ofd_packets/00034419 [11:58:24]File name is /storage/ofd_packets/00034419 [11:58:24]Write 325 bytes [11:58:24]NVStorageSaveData done [11:58:24]OFDSenderStorePacket done [11:58:24]KKMCreateOFDPacket done [11:58:24]NVStorageSaveData kkm_last_timestamp [11:58:24]File name is /storage/kkm_last_timestamp [11:58:24]Write 4 bytes [11:58:24]NVStorageSaveData done [11:58:24]ExternCall_PrintAddStr [11:58:24]wPrintStart [11:58:24]Write to MH i2c: 01 00 00 10 09 19 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 07 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 07 00 10 09 00 00 00 00 00 FF 0F 2E [11:58:24]RasterBufferAndPrint [11:58:24]line Счет N : (3)184192 [11:58:24]line ИНН: 02508201610067 [11:58:24]line Контрольно-Кассовый Чек [11:58:24]line ПРОДАЖА [11:58:24]line Товар: 48743587 [11:58:24]line Сигареты Winston XStyle Silver [11:58:24]line 10.000 * 140.00 [11:58:24]line = 1400.00 [11:58:24]line НДС 12% НСП 1% [11:58:24]line > о реализуемом товаре [11:58:24]line ИТОГО: 1400.00 [11:58:24]line НСП 1% : 12.39 [11:58:24]line НДС 12% : 148.67 [11:58:24]line Наличными: 1400.00 [11:58:24]line Безнал.: 0.00 [11:58:24]line Место: АЗС № 120 "Партнер Нефть" [11:58:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:58:24]line СНО: Общий режим [11:58:24]line Чек 29 20.06.2024 11:58 [11:58:24]line Смена: 325 ФФД: 1.0 [11:58:24]line ЗНМ: 0300000172 [11:58:24]line РНМ: 0000000000092786 [11:58:24]line Версия ККМ: 001 [11:58:24]line ФМ: 0000000000875095 [11:58:24]line ФД: 34419 [11:58:24]line ФПД: 122896566120457 [11:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115824&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34419&fm=122896566120457&tin=02508201610067®Number=0000000000092786&sum=140000 [11:58:24]line 0 [11:58:24]OFD Sender: Processing packet 34419 [packets to send 8, broken 7] [11:58:24]ProducePacketName [11:58:24]name=ofd_packets/00034419 [11:58:24]OFD Sender: To server: pG, [11:58:24]CommunicateWithHost lk.salyk.kg:30040 [11:58:24]ConnectInit lk.salyk.kg [11:58:24]written 0, free lines is 4095 [11:58:24]Connected sock=10 [11:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 96 3A 1F 01 5C B9 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 73 86 00 00 35 04 06 00 6F C6 16 2A F0 09 E8 D7 30 32 54 69 2D 43 [11:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E2 A6 47 00 5F 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 35 30 39 35 10 04 04 00 73 86 00 00 F4 03 04 00 2A C0 73 66 B6 04 01 00 00 6B 3C 55 73 69 23 6F 7C [11:58:25]CommunicateWithHost err = 0 [11:58:25]CheckOFDResponse [11:58:25]1017 (14) - 77093643461234 [11:58:25]1041 (16) - 0000000000875095 [11:58:25]1040 (4) - 34419 [11:58:25]1012 (4) - 20.06.2024 05:37 [11:58:25]1206 (1) - 0 [11:58:25]OFD Sender: Remove packet 34419 [11:58:25]ProducePacketName [11:58:25]name=ofd_packets/00034419 [11:58:25]NVStorageDeleteData [11:58:25]Write to MH i2c: 01 00 00 39 09 42 [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 07 00 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 07 00 39 09 00 00 00 00 00 F4 0C 49 [11:58:25]RasterBufferAndPrint [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]written 0, free lines is 3327 [11:58:25]MH_Cut [11:58:25]Write to MH i2c: D1 01 00 40 09 01 1B [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 01 00 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 01 00 40 09 00 1A [11:58:25]Write to MH i2c: 01 00 00 41 09 4A [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]OFD Sender: No OFD packet to send [11:58:25]*** Cut start [11:58:25]*** Partial cut [11:58:25]*** CUTSNS_PIN = 1 [11:58:25]*** CUTSNS_PIN = 0 [11:58:26]*** Brake cut motor [11:58:26]Read from MH i2c: 01 [11:58:26]MH_I2C_Read... [11:58:26]*** Stop cut motor [11:58:26]*** Cut end [11:58:26]Read from MH i2c: 01 07 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: 01 07 00 41 09 00 00 00 00 00 FF 0F 5F [11:58:26]process_action close_receipt done [11:58:26]requested_data is exist [11:58:26]produce_requested_data [11:58:26]requested_item fm.sn is exist - process it [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 11 00 00 [11:58:26]Write to MH i2c: E2 08 00 42 09 80 11 00 00 00 00 00 00 C5 [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 17 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 17 00 42 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [11:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:58:26]wFMCommunicate OK [11:58:26]requested_item fd.num is exist - process it [11:58:26]SAM_PROTO_GetFieldsCounters [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 13 00 00 [11:58:26]Write to MH i2c: E2 08 00 43 09 80 13 00 00 00 00 00 00 C8 [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 62 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 62 00 43 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 73 86 00 00 0E 04 04 00 45 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 88 [11: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 73 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:26]wFMCommunicate OK [11:58:26]SAM_PROTO_GetFieldsCounters done [11:58:26]requested_item shift.num is exist - process it [11:58:26]requested_item shift.opened is exist - process it [11:58:26]req_shift_opened [11:58:26]FM_GetShiftState [11:58:26]SAM_PROTO_GetShiftState [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 13 01 00 [11:58:26]Write to MH i2c: E2 08 00 44 09 80 13 01 00 00 00 00 00 CA [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 0E 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 0E 00 44 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E2 [11:58:26]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:58:26]wFMCommunicate OK [11:58:26]SAM_PROTO_GetShiftState done [11:58:26]FM_GetShiftState done [11:58:26]req_shift_opened done [11:58:26]requested_item shift.open_date is exist - process it [11:58:26]req_shift_open_date [11:58:26]req_shift_open_date done [11:58:26]produce_requested_data done [11:58:26]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34419,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:58:26]process_action_free close_receipt [11:58:26]json_value_free [11:58:26]json_value_free done [11:58:26]process_json_proto returns [11:58:26]Send response to host [11:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34419,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:58:26]free response buf [11:58:26]execute_script done [11:58:26]execute_script returns [11:58:26]free content buf [11:58:26]Sock 8.Close socket [11:58:26]Sock 8.Thread stoped [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:35]accept exits with 9 [11:58:35]New connection [11:58:35]New thread 3066510692 created [11:58:35]Thread 3066654052 joined [11:58:35]Waiting for new connection... [11:58:35] Sock 9.Parse request [11:58:35]Sock 9.Check first char [11:58:35]Sock 9.First char is OK [11:58:35]request: POST /json_proto HTTP/1.0 [11:58:35]Method: POST [11:58:35]URL: /json_proto [11:58:35]Method is POST - this is cgi request [11:58:35]url: /json_proto [11:58:35]query_string will be loaded in cgi processing [11:58:35]execute_cgi json_proto POST (null) [11:58:35]execute_cgi path=json_proto method=POST [11:58:35]POST find Content-Length [11:58:35]Host: 172.17.38.134:8080 [11:58:35]Content-Length: 644 [11:58:35]Content-Type: application/json [11:58:35] [11:58:35]POST finish read [11:58:35]Found Content-Length = 644 [11:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184193", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:35]execute_script... [11:58:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184193", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:35]POST & json_proto [11:58:35]process_json_proto [11:58:35]json parsed OK: [11:58:35]protocol is kg_v1.0 [11:58:35]action value=close_receipt [11:58:35]process_action close_receipt [11:58:35]cmd_close_receipt [11:58:35]MH_GetDate [11:58:35]Write to MH i2c: F0 00 00 45 09 3D [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: F0 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: F0 09 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: F0 09 00 45 09 00 6D 19 74 66 13 9C 7C 64 35 [11:58:35]GetLastDocTimeStamp 1718884704 [11:58:35]current date 1718884717 [11:58:35]FM_GetShiftState [11:58:35]SAM_PROTO_GetShiftState [11:58:35]wFMCommunicate request_size=4 [11:58:35]MH_SAM_APDU [11:58:35]CAPDU: 80 13 01 00 [11:58:35]Write to MH i2c: E2 08 00 46 09 80 13 01 00 00 00 00 00 CC [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0E 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0E 00 46 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E4 [11:58:35]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:58:35]wFMCommunicate OK [11:58:35]SAM_PROTO_GetShiftState done [11:58:35]FM_GetShiftState done [11:58:35]opened in 1718843069 [11:58:35]opened+sec_in_day 1718929469 [11:58:35]quantity*price = 23000 [11:58:35]sum+1 = 23001 [11:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 20.06.2024 11:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34420 ФПД: 49348171559059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115837&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34420&fm=49348171559059&tin=02508201610067®Number=0000000000092786&sum=23000 0 [11:58:36]StoreToDocumentArchive [11:58:36]shift 325 fd 34420 [11:58:36]save to /storage/0325/doc_00034420 [11:58:36]save last doc name /storage/0325/doc_00034420 to /storage/kkm_last_doc_name [11:58:36]save OK [11:58:36]Clear old archive folders... [11:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:58:36]tlvbuf is 001CDEB0 [11:58:36]SAM_PROTO_ClearQueue [11:58:36]wFMCommunicate request_size=4 [11:58:36]MH_SAM_APDU [11:58:36]CAPDU: 80 09 00 00 [11:58:36]Write to MH i2c: E2 08 00 53 09 80 09 00 00 00 00 00 00 CE [11:58:36]Write i2c OK [11:58:36]MH_I2C_Read... [11:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:36]Read from MH i2c: E2 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 03 00 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 03 00 53 09 00 90 00 D0 [11:58:36]RAPDU: 90 00 [11:58:36]wFMCommunicate OK [11:58:36]SAM_PROTO_ClearQueue done [11:58:36]KKMCreateOFDPacket [11:58:36]OFDProtocolAddRootSTLVToBuf [11:58:36]FM_MakeSignedData [11:58:36]FM_MakeSignedData [11:58:36]SAM_PROTO_SignData [11:58:36]wFMCommunicate request_size=4 [11:58:36]MH_SAM_APDU [11:58:36]CAPDU: 80 0D 01 02 [11:58:36]Write to MH i2c: E2 08 00 54 09 80 0D 01 02 00 00 00 00 D6 [11:58:36]Write i2c OK [11:58:36]MH_I2C_Read... [11:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:36]Read from MH i2c: E2 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 03 00 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 03 00 54 09 00 90 00 D1 [11:58:36]RAPDU: 90 00 [11:58:36]wFMCommunicate OK [11:58:36]wFMCommunicate request_size=255 [11:58:36]MH_SAM_APDU [11:58:36]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [11:58:37]Write to MH i2c: E2 02 01 55 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 47 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 55 09 00 90 00 D2 [11:58:37]RAPDU: 90 00 [11:58:37]wFMCommunicate OK [11:58:37]wFMCommunicate request_size=39 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 74 86 00 00 35 04 06 00 2C E1 C4 3C 70 93 [11:58:37]Write to MH i2c: E2 2A 00 56 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 74 86 00 00 35 04 06 00 2C E1 C4 3C 70 93 00 00 A0 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [11:58:37]RAPDU: 90 00 [11:58:37]wFMCommunicate OK [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 0D 03 02 [11:58:37]Write to MH i2c: E2 08 00 57 09 80 0D 03 02 00 00 00 00 DB [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0B 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0B 00 57 09 00 4F 85 17 43 FC CA ED 36 90 00 F3 [11:58:37]RAPDU: 4F 85 17 43 FC CA ED 36 90 00 [11:58:37]wFMCommunicate OK [11:58:37]SAM_PROTO_SignData done [11:58:37]FM_MakeSignedData done [11:58:37]CreateOFDProtocolMessage [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 11 00 00 [11:58:37]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 17 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 17 00 58 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 30 [11:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:58:37]wFMCommunicate OK [11:58:37]CreateOFDProtocolMessage done [11:58:37]OFDSenderStorePacket 34420 [11:58:37]StoreOFDPacket docnum=34420 [11:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 CF BF 24 01 63 12 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 74 86 00 00 35 04 06 00 2C E1 C4 3C 70 93 4F 85 17 43 FC CA ED 36 [11:58:37]CheckFolder [11:58:37]dirname=/storage/ofd_packets [11:58:37]CheckFolder done [11:58:37]ProducePacketName [11:58:37]name=ofd_packets/00034420 [11:58:37]NVStorageSaveData ofd_packets/00034420 [11:58:37]File name is /storage/ofd_packets/00034420 [11:58:37]Write 330 bytes [11:58:37]NVStorageSaveData done [11:58:37]OFDSenderStorePacket done [11:58:37]KKMCreateOFDPacket done [11:58:37]NVStorageSaveData kkm_last_timestamp [11:58:37]File name is /storage/kkm_last_timestamp [11:58:37]Write 4 bytes [11:58:37]NVStorageSaveData done [11:58:37]ExternCall_PrintAddStr [11:58:37]wPrintStart [11:58:37]Write to MH i2c: 01 00 00 59 09 62 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 07 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 07 00 59 09 00 00 00 00 00 FF 0F 77 [11:58:37]RasterBufferAndPrint [11:58:37]line Счет N : (3)184193 [11:58:37]line ИНН: 02508201610067 [11:58:37]line Контрольно-Кассовый Чек [11:58:37]line ПРОДАЖА [11:58:37]line Товар: 2000036210013 [11:58:37]line Кофе Капучино (GABB TRADE) [11:58:37]line 2.000 * 115.00 [11:58:37]line = 230.00 [11:58:37]line НДС 12% НСП 1% [11:58:37]line > о реализуемом товаре [11:58:37]line ИТОГО: 230.00 [11:58:37]line НСП 1% : 2.03 [11:58:37]line НДС 12% : 24.42 [11:58:37]line Наличными: 230.00 [11:58:37]line Безнал.: 0.00 [11:58:37]line Место: АЗС № 120 "Партнер Нефть" [11:58:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:58:37]line СНО: Общий режим [11:58:37]line Чек 30 20.06.2024 11:58 [11:58:37]line Смена: 325 ФФД: 1.0 [11:58:37]line ЗНМ: 0300000172 [11:58:37]line РНМ: 0000000000092786 [11:58:37]line Версия ККМ: 001 [11:58:37]line ФМ: 0000000000875095 [11:58:37]line ФД: 34420 [11:58:37]line ФПД: 49348171559059 [11:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115837&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34420&fm=49348171559059&tin=02508201610067®Number=0000000000092786&sum=23000 [11:58:37]line 0 [11:58:37]written 0, free lines is 4095 [11:58:37]OFD Sender: Processing packet 34420 [packets to send 8, broken 7] [11:58:37]ProducePacketName [11:58:37]name=ofd_packets/00034420 [11:58:37]OFD Sender: To server: pG, [11:58:37]CommunicateWithHost lk.salyk.kg:30040 [11:58:37]ConnectInit lk.salyk.kg [11:58:37]Connected sock=10 [11:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 CF BF 24 01 63 12 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 6D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 74 86 00 00 35 04 06 00 2C E1 C4 3C 70 93 4F 85 17 43 FC CA ED 36 [11:58:37]Write to MH i2c: 01 00 00 81 09 8A [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 07 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 13 0D B1 [11:58:37]RasterBufferAndPrint [11:58:37]line [11:58:37]line [11:58:37]line [11:58:37]line [11:58:37]line [11:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 4F 26 47 00 2E 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 74 86 00 00 F4 03 04 00 37 C0 73 66 B6 04 01 00 00 C7 2C C1 A5 F5 A3 9E F3 [11:58:37]CommunicateWithHost err = 0 [11:58:37]CheckOFDResponse [11:58:37]1017 (14) - 77093643461234 [11:58:37]1041 (16) - 0000000000875095 [11:58:37]1040 (4) - 34420 [11:58:37]1012 (4) - 20.06.2024 05:37 [11:58:37]1206 (1) - 0 [11:58:37]OFD Sender: Remove packet 34420 [11:58:37]ProducePacketName [11:58:37]name=ofd_packets/00034420 [11:58:37]NVStorageDeleteData [11:58:37]written 0, free lines is 3357 [11:58:37]MH_Cut [11:58:37]Write to MH i2c: D1 01 00 88 09 01 63 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: D1 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: D1 01 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: D1 01 00 88 09 00 62 [11:58:37]Write to MH i2c: 01 00 00 89 09 92 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:38]OFD Sender: No OFD packet to send [11:58:38]*** Cut start [11:58:38]*** Partial cut [11:58:38]*** CUTSNS_PIN = 1 [11:58:38]*** CUTSNS_PIN = 0 [11:58:38]*** Brake cut motor [11:58:39]Read from MH i2c: 01 [11:58:39]MH_I2C_Read... [11:58:39]*** Stop cut motor [11:58:39]*** Cut end [11:58:39]Read from MH i2c: 01 07 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 FF 0F A7 [11:58:39]process_action close_receipt done [11:58:39]requested_data is exist [11:58:39]produce_requested_data [11:58:39]requested_item fm.sn is exist - process it [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 11 00 00 [11:58:39]Write to MH i2c: E2 08 00 8A 09 80 11 00 00 00 00 00 00 0D [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 17 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 17 00 8A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 62 [11:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:58:39]wFMCommunicate OK [11:58:39]requested_item fd.num is exist - process it [11:58:39]SAM_PROTO_GetFieldsCounters [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 13 00 00 [11:58:39]Write to MH i2c: E2 08 00 8B 09 80 13 00 00 00 00 00 00 10 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 62 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 62 00 8B 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 74 86 00 00 0E 04 04 00 45 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 D4 [11:58: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 74 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:39]wFMCommunicate OK [11:58:39]SAM_PROTO_GetFieldsCounters done [11:58:39]requested_item shift.num is exist - process it [11:58:39]requested_item shift.opened is exist - process it [11:58:39]req_shift_opened [11:58:39]FM_GetShiftState [11:58:39]SAM_PROTO_GetShiftState [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 13 01 00 [11:58:39]Write to MH i2c: E2 08 00 8C 09 80 13 01 00 00 00 00 00 12 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0E 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0E 00 8C 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2A [11:58:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:58:39]wFMCommunicate OK [11:58:39]SAM_PROTO_GetShiftState done [11:58:39]FM_GetShiftState done [11:58:39]req_shift_opened done [11:58:39]requested_item shift.open_date is exist - process it [11:58:39]req_shift_open_date [11:58:39]req_shift_open_date done [11:58:39]produce_requested_data done [11:58:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34420,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:58:39]process_action_free close_receipt [11:58:39]json_value_free [11:58:39]json_value_free done [11:58:39]process_json_proto returns [11:58:39]Send response to host [11:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34420,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:58:39]free response buf [11:58:39]execute_script done [11:58:39]execute_script returns [11:58:39]free content buf [11:58:39]Sock 9.Close socket [11:58:39]Sock 9.Thread stoped [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:23]accept exits with 8 [11:59:23]New connection [11:59:23]New thread 3066654052 created [11:59:23]Thread 3066510692 joined [11:59:23]Waiting for new connection... [11:59:23] Sock 8.Parse request [11:59:23]Sock 8.Check first char [11:59:23]Sock 8.First char is OK [11:59:23]request: POST /json_proto HTTP/1.0 [11:59:23]Method: POST [11:59:23]URL: /json_proto [11:59:23]Method is POST - this is cgi request [11:59:23]url: /json_proto [11:59:23]query_string will be loaded in cgi processing [11:59:23]execute_cgi json_proto POST (null) [11:59:23]execute_cgi path=json_proto method=POST [11:59:23]POST find Content-Length [11:59:23]Host: 172.17.38.134:8080 [11:59:23]Content-Length: 892 [11:59:23]Content-Type: application/json [11:59:23] [11:59:23]POST finish read [11:59:23]Found Content-Length = 892 [11:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184194", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:23]execute_script... [11:59:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184194", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:23]POST & json_proto [11:59:23]process_json_proto [11:59:23]json parsed OK: [11:59:23]protocol is kg_v1.0 [11:59:23]action value=close_receipt [11:59:23]process_action close_receipt [11:59:23]cmd_close_receipt [11:59:23]MH_GetDate [11:59:23]Write to MH i2c: F0 00 00 8D 09 85 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 09 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: F0 09 00 8D 09 00 9D 19 74 66 13 9C 7C 64 AD [11:59:23]GetLastDocTimeStamp 1718884717 [11:59:23]current date 1718884765 [11:59:23]FM_GetShiftState [11:59:23]SAM_PROTO_GetShiftState [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 13 01 00 [11:59:23]Write to MH i2c: E2 08 00 8E 09 80 13 01 00 00 00 00 00 14 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0E 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 0E 00 8E 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2C [11:59:23]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_GetShiftState done [11:59:23]FM_GetShiftState done [11:59:23]opened in 1718843069 [11:59:23]opened+sec_in_day 1718929469 [11:59:23]quantity*price = 9500 [11:59:23]sum+1 = 9501 [11:59:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 31 20.06.2024 11:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34421 ФПД: 188691730696574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115925&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34421&fm=188691730696574&tin=02508201610067®Number=0000000000092786&sum=21000 0 [11:59:24]StoreToDocumentArchive [11:59:24]shift 325 fd 34421 [11:59:24]save to /storage/0325/doc_00034421 [11:59:24]save last doc name /storage/0325/doc_00034421 to /storage/kkm_last_doc_name [11:59:24]save OK [11:59:24]Clear old archive folders... [11:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=388 [11:59:24]tlvbuf is 002276E0 [11:59:24]SAM_PROTO_ClearQueue [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 09 00 00 [11:59:24]Write to MH i2c: E2 08 00 9B 09 80 09 00 00 00 00 00 00 16 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 9B 09 00 90 00 18 [11:59:24]RAPDU: 90 00 [11:59:24]wFMCommunicate OK [11:59:24]SAM_PROTO_ClearQueue done [11:59:24]KKMCreateOFDPacket [11:59:24]OFDProtocolAddRootSTLVToBuf [11:59:24]FM_MakeSignedData [11:59:24]FM_MakeSignedData [11:59:24]SAM_PROTO_SignData [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 0D 01 02 [11:59:24]Write to MH i2c: E2 08 00 9C 09 80 0D 01 02 00 00 00 00 1E [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 9C 09 00 90 00 19 [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=255 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [11:59:25]Write to MH i2c: E2 02 01 9D 09 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 E1 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=147 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 02 02 8E F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 75 86 00 00 35 04 06 00 AB 9D 37 94 89 7E [11:59:25]Write to MH i2c: E2 96 00 9E 09 80 0D 02 02 8E 00 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 75 86 00 00 35 04 06 00 AB 9D 37 94 89 7E 00 00 4F [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 03 00 9E 09 00 90 00 1B [11:59:25]RAPDU: 90 00 [11:59:25]wFMCommunicate OK [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 0D 03 02 [11:59:25]Write to MH i2c: E2 08 00 9F 09 80 0D 03 02 00 00 00 00 23 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 0B 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 0B 00 9F 09 00 17 3B 2B 8C 85 34 54 DF 90 00 19 [11:59:25]RAPDU: 17 3B 2B 8C 85 34 54 DF 90 00 [11:59:25]wFMCommunicate OK [11:59:25]SAM_PROTO_SignData done [11:59:25]FM_MakeSignedData done [11:59:25]CreateOFDProtocolMessage [11:59:25]wFMCommunicate request_size=4 [11:59:25]MH_SAM_APDU [11:59:25]CAPDU: 80 11 00 00 [11:59:25]Write to MH i2c: E2 08 00 A0 09 80 11 00 00 00 00 00 00 23 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:25]Read from MH i2c: E2 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 17 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: E2 17 00 A0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 78 [11:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:59:25]wFMCommunicate OK [11:59:25]CreateOFDProtocolMessage done [11:59:25]OFDSenderStorePacket 34421 [11:59:25]StoreOFDPacket docnum=34421 [11:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 98 01 00 00 6C 75 90 01 1E 47 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 75 86 00 00 35 04 06 00 AB 9D 37 94 89 7E 17 3B 2B 8C 85 34 54 DF [11:59:25]CheckFolder [11:59:25]dirname=/storage/ofd_packets [11:59:25]CheckFolder done [11:59:25]ProducePacketName [11:59:25]name=ofd_packets/00034421 [11:59:25]NVStorageSaveData ofd_packets/00034421 [11:59:25]File name is /storage/ofd_packets/00034421 [11:59:25]Write 438 bytes [11:59:25]NVStorageSaveData done [11:59:25]OFDSenderStorePacket done [11:59:25]KKMCreateOFDPacket done [11:59:25]NVStorageSaveData kkm_last_timestamp [11:59:25]File name is /storage/kkm_last_timestamp [11:59:25]Write 4 bytes [11:59:25]NVStorageSaveData done [11:59:25]ExternCall_PrintAddStr [11:59:25]wPrintStart [11:59:25]Write to MH i2c: 01 00 00 A1 09 AA [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 A1 09 00 00 00 00 00 FF 0F BF [11:59:25]RasterBufferAndPrint [11:59:25]line Счет N : (3)184194 [11:59:25]line ИНН: 02508201610067 [11:59:25]line Контрольно-Кассовый Чек [11:59:25]line ПРОДАЖА [11:59:25]line Товар: 2000036190018 [11:59:25]line Кофе Американо XL(GABB TRADE) [11:59:25]line 1.000 * 95.00 [11:59:25]line = 95.00 [11:59:25]line НДС 12% НСП 1% [11:59:25]line > о реализуемом товаре [11:59:25]line Товар: 2000036240010 [11:59:25]line Кофе Латте (GABB TRADE) [11:59:25]line 1.000 * 115.00 [11:59:25]line = 115.00 [11:59:25]line НДС 12% НСП 1% [11:59:25]line > о реализуемом товаре [11:59:25]line ИТОГО: 210.00 [11:59:25]line НСП 1% : 1.86 [11:59:25]line НДС 12% : 22.30 [11:59:25]line Наличными: 210.00 [11:59:25]line Безнал.: 0.00 [11:59:25]line Место: АЗС № 120 "Партнер Нефть" [11:59:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:59:25]line СНО: Общий режим [11:59:25]line Чек 31 20.06.2024 11:59 [11:59:25]line Смена: 325 ФФД: 1.0 [11:59:25]line ЗНМ: 0300000172 [11:59:25]line РНМ: 0000000000092786 [11:59:25]line Версия ККМ: 001 [11:59:25]line ФМ: 0000000000875095 [11:59:25]line ФД: 34421 [11:59:25]line ФПД: 188691730696574 [11:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115925&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34421&fm=188691730696574&tin=02508201610067®Number=0000000000092786&sum=21000 [11:59:25]line 0 [11:59:25]OFD Sender: Processing packet 34421 [packets to send 8, broken 7] [11:59:25]ProducePacketName [11:59:25]name=ofd_packets/00034421 [11:59:25]OFD Sender: To server: pG, [11:59:25]CommunicateWithHost lk.salyk.kg:30040 [11:59:25]ConnectInit lk.salyk.kg [11:59:25]written 0, free lines is 4095 [11:59:26]Connected sock=10 [11:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 98 01 00 00 6C 75 90 01 1E 47 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 9D 19 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 75 86 00 00 35 04 06 00 AB 9D 37 94 89 7E 17 3B 2B 8C 85 34 54 DF [11:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D9 A1 47 00 65 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 35 30 39 35 10 04 04 00 75 86 00 00 F4 03 04 00 67 C0 73 66 B6 04 01 00 00 8A 3F F9 E2 C2 C0 83 4D [11:59:26]CommunicateWithHost err = 0 [11:59:26]CheckOFDResponse [11:59:26]1017 (14) - 77093643461234 [11:59:26]1041 (16) - 0000000000875095 [11:59:26]1040 (4) - 34421 [11:59:26]1012 (4) - 20.06.2024 05:38 [11:59:26]1206 (1) - 0 [11:59:26]OFD Sender: Remove packet 34421 [11:59:26]ProducePacketName [11:59:26]name=ofd_packets/00034421 [11:59:26]NVStorageDeleteData [11:59:26]Write to MH i2c: 01 00 00 D0 09 D9 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 A8 0C 94 [11:59:26]RasterBufferAndPrint [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]line [11:59:26]written 0, free lines is 3246 [11:59:26]MH_Cut [11:59:26]Write to MH i2c: D1 01 00 D7 09 01 B2 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 01 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: D1 01 00 D7 09 00 B1 [11:59:26]Write to MH i2c: 01 00 00 D8 09 E1 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]OFD Sender: No OFD packet to send [11:59:27]*** Cut start [11:59:27]*** Partial cut [11:59:27]*** CUTSNS_PIN = 1 [11:59:27]*** CUTSNS_PIN = 0 [11:59:27]*** Brake cut motor [11:59:27]Read from MH i2c: 01 [11:59:27]MH_I2C_Read... [11:59:27]*** Stop cut motor [11:59:27]*** Cut end [11:59:27]Read from MH i2c: 01 07 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [11:59:27]process_action close_receipt done [11:59:27]requested_data is exist [11:59:27]produce_requested_data [11:59:27]requested_item fm.sn is exist - process it [11:59:27]wFMCommunicate request_size=4 [11:59:27]MH_SAM_APDU [11:59:27]CAPDU: 80 11 00 00 [11:59:27]Write to MH i2c: E2 08 00 D9 09 80 11 00 00 00 00 00 00 5C [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:27]Read from MH i2c: E2 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 17 00 [11:59:27]MH_I2C_Read... [11:59:27]Read from MH i2c: E2 17 00 D9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B1 [11:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:59:27]wFMCommunicate OK [11:59:27]requested_item fd.num is exist - process it [11:59:27]SAM_PROTO_GetFieldsCounters [11:59:27]wFMCommunicate request_size=4 [11:59:27]MH_SAM_APDU [11:59:27]CAPDU: 80 13 00 00 [11:59:27]Write to MH i2c: E2 08 00 DA 09 80 13 00 00 00 00 00 00 5F [11:59:27]Write i2c OK [11:59:27]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 62 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 62 00 DA 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 75 86 00 00 0E 04 04 00 45 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 27 [11:59: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 75 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_GetFieldsCounters done [11:59:28]requested_item shift.num is exist - process it [11:59:28]requested_item shift.opened is exist - process it [11:59:28]req_shift_opened [11:59:28]FM_GetShiftState [11:59:28]SAM_PROTO_GetShiftState [11:59:28]wFMCommunicate request_size=4 [11:59:28]MH_SAM_APDU [11:59:28]CAPDU: 80 13 01 00 [11:59:28]Write to MH i2c: E2 08 00 DB 09 80 13 01 00 00 00 00 00 61 [11:59:28]Write i2c OK [11:59:28]MH_I2C_Read... [11:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:28]Read from MH i2c: E2 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0E 00 [11:59:28]MH_I2C_Read... [11:59:28]Read from MH i2c: E2 0E 00 DB 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 79 [11:59:28]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [11:59:28]wFMCommunicate OK [11:59:28]SAM_PROTO_GetShiftState done [11:59:28]FM_GetShiftState done [11:59:28]req_shift_opened done [11:59:28]requested_item shift.open_date is exist - process it [11:59:28]req_shift_open_date [11:59:28]req_shift_open_date done [11:59:28]produce_requested_data done [11:59:28]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34421,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [11:59:28]process_action_free close_receipt [11:59:28]json_value_free [11:59:28]json_value_free done [11:59:28]process_json_proto returns [11:59:28]Send response to host [11:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34421,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [11:59:28]free response buf [11:59:28]execute_script done [11:59:28]execute_script returns [11:59:28]free content buf [11:59:28]Sock 8.Close socket [11:59:28]Sock 8.Thread stoped [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:47]accept exits with 9 [12:03:47]New connection [12:03:47]New thread 3066510692 created [12:03:47]Thread 3066654052 joined [12:03:47]Waiting for new connection... [12:03:47] Sock 9.Parse request [12:03:47]Sock 9.Check first char [12:03:47]Sock 9.First char is OK [12:03:47]request: POST /json_proto HTTP/1.0 [12:03:47]Method: POST [12:03:47]URL: /json_proto [12:03:47]Method is POST - this is cgi request [12:03:47]url: /json_proto [12:03:47]query_string will be loaded in cgi processing [12:03:47]execute_cgi json_proto POST (null) [12:03:47]execute_cgi path=json_proto method=POST [12:03:47]POST find Content-Length [12:03:47]Host: 172.17.38.134:8080 [12:03:47]Content-Length: 660 [12:03:47]Content-Type: application/json [12:03:47] [12:03:47]POST finish read [12:03:47]Found Content-Length = 660 [12:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184195", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:47]execute_script... [12:03:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184195", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:47]POST & json_proto [12:03:47]process_json_proto [12:03:47]json parsed OK: [12:03:47]protocol is kg_v1.0 [12:03:47]action value=close_receipt [12:03:47]process_action close_receipt [12:03:47]cmd_close_receipt [12:03:47]MH_GetDate [12:03:47]Write to MH i2c: F0 00 00 DC 09 D4 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: F0 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: F0 09 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: F0 09 00 DC 09 00 A5 1A 74 66 13 9C 7C 64 05 [12:03:47]GetLastDocTimeStamp 1718884765 [12:03:47]current date 1718885029 [12:03:47]FM_GetShiftState [12:03:47]SAM_PROTO_GetShiftState [12:03:47]wFMCommunicate request_size=4 [12:03:47]MH_SAM_APDU [12:03:47]CAPDU: 80 13 01 00 [12:03:47]Write to MH i2c: E2 08 00 DD 09 80 13 01 00 00 00 00 00 63 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:47]Read from MH i2c: E2 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 0E 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 0E 00 DD 09 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7B [12:03:47]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [12:03:47]wFMCommunicate OK [12:03:47]SAM_PROTO_GetShiftState done [12:03:47]FM_GetShiftState done [12:03:47]opened in 1718843069 [12:03:47]opened+sec_in_day 1718929469 [12:03:47]quantity*price = 15500 [12:03:47]sum+1 = 15501 [12:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 20.06.2024 12:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34422 ФПД: 30334071857590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120349&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34422&fm=30334071857590&tin=02508201610067®Number=0000000000092786&sum=15500 0 [12:03:48]StoreToDocumentArchive [12:03:48]shift 325 fd 34422 [12:03:48]save to /storage/0325/doc_00034422 [12:03:48]save last doc name /storage/0325/doc_00034422 to /storage/kkm_last_doc_name [12:03:48]save OK [12:03:48]Clear old archive folders... [12:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:03:48]tlvbuf is 00232460 [12:03:48]SAM_PROTO_ClearQueue [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 09 00 00 [12:03:48]Write to MH i2c: E2 08 00 EA 09 80 09 00 00 00 00 00 00 65 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 EA 09 00 90 00 67 [12:03:48]RAPDU: 90 00 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_ClearQueue done [12:03:48]KKMCreateOFDPacket [12:03:48]OFDProtocolAddRootSTLVToBuf [12:03:48]FM_MakeSignedData [12:03:48]FM_MakeSignedData [12:03:48]SAM_PROTO_SignData [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 0D 01 02 [12:03:48]Write to MH i2c: E2 08 00 EB 09 80 0D 01 02 00 00 00 00 6D [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 EB 09 00 90 00 68 [12:03:48]RAPDU: 90 00 [12:03:48]wFMCommunicate OK [12:03:48]wFMCommunicate request_size=255 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A5 1A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [12:03:48]Write to MH i2c: E2 02 01 EC 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A5 1A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 8C [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 EC 09 00 90 00 69 [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]wFMCommunicate request_size=39 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 76 86 00 00 35 04 06 00 1B 96 B3 93 E1 B6 [12:03:49]Write to MH i2c: E2 2A 00 ED 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 76 86 00 00 35 04 06 00 1B 96 B3 93 E1 B6 00 00 B7 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 ED 09 00 90 00 6A [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 03 02 [12:03:49]Write to MH i2c: E2 08 00 EE 09 80 0D 03 02 00 00 00 00 72 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 0B 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 0B 00 EE 09 00 DD 46 14 83 E6 B9 F8 E4 90 00 A8 [12:03:49]RAPDU: DD 46 14 83 E6 B9 F8 E4 90 00 [12:03:49]wFMCommunicate OK [12:03:49]SAM_PROTO_SignData done [12:03:49]FM_MakeSignedData done [12:03:49]CreateOFDProtocolMessage [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 11 00 00 [12:03:49]Write to MH i2c: E2 08 00 EF 09 80 11 00 00 00 00 00 00 72 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 17 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 17 00 EF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C7 [12:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:03:49]wFMCommunicate OK [12:03:49]CreateOFDProtocolMessage done [12:03:49]OFDSenderStorePacket 34422 [12:03:49]StoreOFDPacket docnum=34422 [12:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 A4 88 24 01 B1 B6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A5 1A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 76 86 00 00 35 04 06 00 1B 96 B3 93 E1 B6 DD 46 14 83 E6 B9 F8 E4 [12:03:49]CheckFolder [12:03:49]dirname=/storage/ofd_packets [12:03:49]CheckFolder done [12:03:49]ProducePacketName [12:03:49]name=ofd_packets/00034422 [12:03:49]NVStorageSaveData ofd_packets/00034422 [12:03:49]File name is /storage/ofd_packets/00034422 [12:03:49]Write 330 bytes [12:03:49]NVStorageSaveData done [12:03:49]OFDSenderStorePacket done [12:03:49]KKMCreateOFDPacket done [12:03:49]NVStorageSaveData kkm_last_timestamp [12:03:49]File name is /storage/kkm_last_timestamp [12:03:49]Write 4 bytes [12:03:49]NVStorageSaveData done [12:03:49]ExternCall_PrintAddStr [12:03:49]wPrintStart [12:03:49]Write to MH i2c: 01 00 00 F0 09 F9 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 FF 0F 0E [12:03:49]RasterBufferAndPrint [12:03:49]line Счет N : (3)184195 [12:03:49]line ИНН: 02508201610067 [12:03:49]line Контрольно-Кассовый Чек [12:03:49]line ПРОДАЖА [12:03:49]line Товар: 5449000000439 [12:03:49]line Напиток Кока-Кола 1,5л [12:03:49]line 1.000 * 155.00 [12:03:49]line = 155.00 [12:03:49]line НДС 12% НСП 1% [12:03:49]line > о реализуемом товаре [12:03:49]line ИТОГО: 155.00 [12:03:49]line НСП 1% : 1.37 [12:03:49]line НДС 12% : 16.46 [12:03:49]line Наличными: 155.00 [12:03:49]line Безнал.: 0.00 [12:03:49]line Место: АЗС № 120 "Партнер Нефть" [12:03:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:03:49]line СНО: Общий режим [12:03:49]line Чек 32 20.06.2024 12:03 [12:03:49]line Смена: 325 ФФД: 1.0 [12:03:49]line ЗНМ: 0300000172 [12:03:49]line РНМ: 0000000000092786 [12:03:49]line Версия ККМ: 001 [12:03:49]line ФМ: 0000000000875095 [12:03:49]line ФД: 34422 [12:03:49]line ФПД: 30334071857590 [12:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120349&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34422&fm=30334071857590&tin=02508201610067®Number=0000000000092786&sum=15500 [12:03:49]line 0 [12:03:49]OFD Sender: Processing packet 34422 [packets to send 8, broken 7] [12:03:49]ProducePacketName [12:03:49]name=ofd_packets/00034422 [12:03:49]OFD Sender: To server: pG, [12:03:49]CommunicateWithHost lk.salyk.kg:30040 [12:03:49]ConnectInit lk.salyk.kg [12:03:49]written 0, free lines is 4095 [12:03:49]Connected sock=10 [12:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 A4 88 24 01 B1 B6 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A5 1A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 76 86 00 00 35 04 06 00 1B 96 B3 93 E1 B6 DD 46 14 83 E6 B9 F8 E4 [12:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E2 8E 47 00 26 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 76 86 00 00 F4 03 04 00 6E C1 73 66 B6 04 01 00 00 0F D2 6F B6 E3 A3 47 17 [12:03:49]CommunicateWithHost err = 0 [12:03:49]CheckOFDResponse [12:03:49]1017 (14) - 77093643461234 [12:03:49]1041 (16) - 0000000000875095 [12:03:49]1040 (4) - 34422 [12:03:49]1012 (4) - 20.06.2024 05:43 [12:03:49]1206 (1) - 0 [12:03:49]OFD Sender: Remove packet 34422 [12:03:49]ProducePacketName [12:03:49]name=ofd_packets/00034422 [12:03:49]NVStorageDeleteData [12:03:49]Write to MH i2c: 01 00 00 18 0A 22 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 0B 0D 41 [12:03:49]RasterBufferAndPrint [12:03:49]line [12:03:49]line [12:03:49]line [12:03:49]line [12:03:49]line [12:03:49]written 0, free lines is 3345 [12:03:49]MH_Cut [12:03:49]Write to MH i2c: D1 01 00 1F 0A 01 FB [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: D1 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: D1 01 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: D1 01 00 1F 0A 00 FA [12:03:49]Write to MH i2c: 01 00 00 20 0A 2A [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:50]OFD Sender: No OFD packet to send [12:03:50]*** Cut start [12:03:50]*** Partial cut [12:03:50]*** CUTSNS_PIN = 1 [12:03:50]*** CUTSNS_PIN = 0 [12:03:50]*** Brake cut motor [12:03:51]Read from MH i2c: 01 [12:03:51]MH_I2C_Read... [12:03:51]*** Stop cut motor [12:03:51]*** Cut end [12:03:51]Read from MH i2c: 01 07 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [12:03:51]process_action close_receipt done [12:03:51]requested_data is exist [12:03:51]produce_requested_data [12:03:51]requested_item fm.sn is exist - process it [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 11 00 00 [12:03:51]Write to MH i2c: E2 08 00 21 0A 80 11 00 00 00 00 00 00 A5 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 17 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 17 00 21 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 FA [12:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:03:51]wFMCommunicate OK [12:03:51]requested_item fd.num is exist - process it [12:03:51]SAM_PROTO_GetFieldsCounters [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 13 00 00 [12:03:51]Write to MH i2c: E2 08 00 22 0A 80 13 00 00 00 00 00 00 A8 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 62 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 62 00 22 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 76 86 00 00 0E 04 04 00 45 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 74 [12:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 76 86 00 00 0E 04 04 00 45 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 [12:03:51]wFMCommunicate OK [12:03:51]SAM_PROTO_GetFieldsCounters done [12:03:51]requested_item shift.num is exist - process it [12:03:51]requested_item shift.opened is exist - process it [12:03:51]req_shift_opened [12:03:51]FM_GetShiftState [12:03:51]SAM_PROTO_GetShiftState [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 13 01 00 [12:03:51]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C2 [12:03:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [12:03:51]wFMCommunicate OK [12:03:51]SAM_PROTO_GetShiftState done [12:03:51]FM_GetShiftState done [12:03:51]req_shift_opened done [12:03:51]requested_item shift.open_date is exist - process it [12:03:51]req_shift_open_date [12:03:51]req_shift_open_date done [12:03:51]produce_requested_data done [12:03:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34422,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [12:03:51]process_action_free close_receipt [12:03:51]json_value_free [12:03:51]json_value_free done [12:03:51]process_json_proto returns [12:03:51]Send response to host [12:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34422,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [12:03:51]free response buf [12:03:51]execute_script done [12:03:51]execute_script returns [12:03:51]free content buf [12:03:51]Sock 9.Close socket [12:03:51]Sock 9.Thread stoped [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16: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:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:49]accept exits with 8 [12:18:49]New connection [12:18:49]New thread 3066654052 created [12:18:49]Thread 3066510692 joined [12:18:49]Waiting for new connection... [12:18:49] Sock 8.Parse request [12:18:49]Sock 8.Check first char [12:18:49]Sock 8.First char is OK [12:18:49]request: POST /json_proto HTTP/1.0 [12:18:49]Method: POST [12:18:49]URL: /json_proto [12:18:49]Method is POST - this is cgi request [12:18:49]url: /json_proto [12:18:49]query_string will be loaded in cgi processing [12:18:49]execute_cgi json_proto POST (null) [12:18:49]execute_cgi path=json_proto method=POST [12:18:49]POST find Content-Length [12:18:49]Host: 172.17.38.134:8080 [12:18:49]Content-Length: 1123 [12:18:49]Content-Type: application/json [12:18:49] [12:18:49]POST finish read [12:18:49]Found Content-Length = 1123 [12:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184196", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:49]execute_script... [12:18: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 : (3)184196", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:49]POST & json_proto [12:18:49]process_json_proto [12:18:49]json parsed OK: [12:18:49]protocol is kg_v1.0 [12:18:49]action value=close_receipt [12:18:49]process_action close_receipt [12:18:49]cmd_close_receipt [12:18:49]MH_GetDate [12:18:49]Write to MH i2c: F0 00 00 24 0A 1D [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: F0 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: F0 09 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: F0 09 00 24 0A 00 2B 1E 74 66 13 9C 7C 64 D8 [12:18:49]GetLastDocTimeStamp 1718885029 [12:18:49]current date 1718885931 [12:18:49]FM_GetShiftState [12:18:49]SAM_PROTO_GetShiftState [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 13 01 00 [12:18:49]Write to MH i2c: E2 08 00 25 0A 80 13 01 00 00 00 00 00 AC [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 25 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C4 [12:18:49]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetShiftState done [12:18:49]FM_GetShiftState done [12:18:49]opened in 1718843069 [12:18:49]opened+sec_in_day 1718929469 [12:18:49]quantity*price = 9500 [12:18:49]sum+1 = 9501 [12:18:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.09 Наличными: 0.00 Безнал.: 208.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 33 20.06.2024 12:18 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34423 ФПД: 248780625942376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121851&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34423&fm=248780625942376&tin=02508201610067®Number=0000000000092786&sum=20800 0 [12:18:50]StoreToDocumentArchive [12:18:50]shift 325 fd 34423 [12:18:50]save to /storage/0325/doc_00034423 [12:18:50]save last doc name /storage/0325/doc_00034423 to /storage/kkm_last_doc_name [12:18:50]save OK [12:18:50]Clear old archive folders... [12:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=398 [12:18:50]tlvbuf is 00227240 [12:18:50]SAM_PROTO_ClearQueue [12:18:50]wFMCommunicate request_size=4 [12:18:50]MH_SAM_APDU [12:18:50]CAPDU: 80 09 00 00 [12:18:50]Write to MH i2c: E2 08 00 32 0A 80 09 00 00 00 00 00 00 AE [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:50]Read from MH i2c: E2 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 03 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [12:18:50]RAPDU: 90 00 [12:18:50]wFMCommunicate OK [12:18:50]SAM_PROTO_ClearQueue done [12:18:50]KKMCreateOFDPacket [12:18:50]OFDProtocolAddRootSTLVToBuf [12:18:50]FM_MakeSignedData [12:18:50]FM_MakeSignedData [12:18:50]SAM_PROTO_SignData [12:18:50]wFMCommunicate request_size=4 [12:18:50]MH_SAM_APDU [12:18:50]CAPDU: 80 0D 01 02 [12:18:50]Write to MH i2c: E2 08 00 33 0A 80 0D 01 02 00 00 00 00 B6 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [12:18:51]RAPDU: 90 00 [12:18:51]wFMCommunicate OK [12:18:51]wFMCommunicate request_size=255 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 [12:18:51]Write to MH i2c: E2 02 01 34 0A 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 00 9D [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]OFD Sender: No OFD packet to send [12:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [12:18:51]RAPDU: 90 00 [12:18:51]wFMCommunicate OK [12:18:51]wFMCommunicate request_size=157 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2B 1E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 77 86 00 00 35 04 06 00 E2 43 C0 D6 17 68 [12:18:51]Write to MH i2c: E2 A0 00 35 0A 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2B 1E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 77 86 00 00 35 04 06 00 E2 43 C0 D6 17 68 00 00 CE [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [12:18:51]RAPDU: 90 00 [12:18:51]wFMCommunicate OK [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 0D 03 02 [12:18:51]Write to MH i2c: E2 08 00 36 0A 80 0D 03 02 00 00 00 00 BB [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0B 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0B 00 36 0A 00 85 D1 2E C3 FA 9E 06 53 90 00 F4 [12:18:51]RAPDU: 85 D1 2E C3 FA 9E 06 53 90 00 [12:18:51]wFMCommunicate OK [12:18:51]SAM_PROTO_SignData done [12:18:51]FM_MakeSignedData done [12:18:51]CreateOFDProtocolMessage [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 11 00 00 [12:18:51]Write to MH i2c: E2 08 00 37 0A 80 11 00 00 00 00 00 00 BB [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 17 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 17 00 37 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 10 [12:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:18:51]wFMCommunicate OK [12:18:51]CreateOFDProtocolMessage done [12:18:51]OFDSenderStorePacket 34423 [12:18:51]StoreOFDPacket docnum=34423 [12:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A2 01 00 00 4E 46 9A 01 60 04 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2B 1E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 77 86 00 00 35 04 06 00 E2 43 C0 D6 17 68 85 D1 2E C3 FA 9E 06 53 [12:18:51]CheckFolder [12:18:51]dirname=/storage/ofd_packets [12:18:51]CheckFolder done [12:18:51]ProducePacketName [12:18:51]name=ofd_packets/00034423 [12:18:51]NVStorageSaveData ofd_packets/00034423 [12:18:51]File name is /storage/ofd_packets/00034423 [12:18:51]Write 448 bytes [12:18:51]NVStorageSaveData done [12:18:51]OFDSenderStorePacket done [12:18:51]KKMCreateOFDPacket done [12:18:51]NVStorageSaveData kkm_last_timestamp [12:18:51]File name is /storage/kkm_last_timestamp [12:18:51]Write 4 bytes [12:18:51]NVStorageSaveData done [12:18:51]ExternCall_PrintAddStr [12:18:51]wPrintStart [12:18:51]Write to MH i2c: 01 00 00 38 0A 42 [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: 01 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: 01 07 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [12:18:51]RasterBufferAndPrint [12:18:51]line Счет N : (3)184196 [12:18:51]line ИНН: 02508201610067 [12:18:51]line Контрольно-Кассовый Чек [12:18:51]line ПРОДАЖА [12:18:51]line Товар: 4700000483334 [12:18:51]line Напиток Nitro Fresh Дикие ягоды [12:18:51]line 1.000 * 95.00 [12:18:51]line = 95.00 [12:18:51]line НДС 12% НСП 1% [12:18:51]line > о реализуемом товаре [12:18:51]line Товар: 5449000054227 [12:18:51]line Напиток Кока-Кола 1л [12:18:51]line 1.000 * 113.00 [12:18:51]line = 113.00 [12:18:51]line НДС 12% НСП 1% [12:18:51]line > о реализуемом товаре [12:18:51]line ИТОГО: 208.00 [12:18:51]line НСП 1% : 1.84 [12:18:51]line НДС 12% : 22.09 [12:18:51]line Наличными: 0.00 [12:18:51]line Безнал.: 208.00 [12:18:51]line Место: АЗС № 120 "Партнер Нефть" [12:18:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:18:51]line СНО: Общий режим [12:18:51]line Чек 33 20.06.2024 12:18 [12:18:51]line Смена: 325 ФФД: 1.0 [12:18:51]line ЗНМ: 0300000172 [12:18:51]line РНМ: 0000000000092786 [12:18:51]line Версия ККМ: 001 [12:18:51]line Платежная система: Бакай Банк [12:18:51]line ФМ: 0000000000875095 [12:18:51]line ФД: 34423 [12:18:51]line ФПД: 248780625942376 [12:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T121851&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34423&fm=248780625942376&tin=02508201610067®Number=0000000000092786&sum=20800 [12:18:51]line 0 [12:18:51]written 0, free lines is 4095 [12:18:52]OFD Sender: Processing packet 34423 [packets to send 8, broken 7] [12:18:52]ProducePacketName [12:18:52]name=ofd_packets/00034423 [12:18:52]OFD Sender: To server: pG, [12:18:52]CommunicateWithHost lk.salyk.kg:30040 [12:18:52]ConnectInit lk.salyk.kg [12:18:52]Connected sock=10 [12:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A2 01 00 00 4E 46 9A 01 60 04 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 2B 1E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 77 86 00 00 35 04 06 00 E2 43 C0 D6 17 68 85 D1 2E C3 FA 9E 06 53 [12:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DB 05 47 00 85 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 77 86 00 00 F4 03 04 00 F5 C4 73 66 B6 04 01 00 00 96 74 C3 0D 36 86 3E 05 [12:18:52]CommunicateWithHost err = 0 [12:18:52]CheckOFDResponse [12:18:52]1017 (14) - 77093643461234 [12:18:52]1041 (16) - 0000000000875095 [12:18:52]1040 (4) - 34423 [12:18:52]1012 (4) - 20.06.2024 05:58 [12:18:52]1206 (1) - 0 [12:18:52]OFD Sender: Remove packet 34423 [12:18:52]ProducePacketName [12:18:52]name=ofd_packets/00034423 [12:18:52]NVStorageDeleteData [12:18:52]Write to MH i2c: 01 00 00 69 0A 73 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 07 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 6A 0C F0 [12:18:52]RasterBufferAndPrint [12:18:52]line [12:18:52]line [12:18:52]line [12:18:52]line [12:18:52]line [12:18:52]written 0, free lines is 3184 [12:18:52]MH_Cut [12:18:52]Write to MH i2c: D1 01 00 70 0A 01 4C [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: D1 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: D1 01 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: D1 01 00 70 0A 00 4B [12:18:52]Write to MH i2c: 01 00 00 71 0A 7B [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]OFD Sender: No OFD packet to send [12:18:53]*** Cut start [12:18:53]*** Partial cut [12:18:53]*** CUTSNS_PIN = 1 [12:18:53]*** CUTSNS_PIN = 0 [12:18:53]*** Brake cut motor [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]*** Stop cut motor [12:18:53]*** Cut end [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [12:18:53]process_action close_receipt done [12:18:53]requested_data is exist [12:18:53]produce_requested_data [12:18:53]requested_item fm.sn is exist - process it [12:18:53]wFMCommunicate request_size=4 [12:18:53]MH_SAM_APDU [12:18:53]CAPDU: 80 11 00 00 [12:18:53]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:53]Read from MH i2c: E2 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 17 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4B [12:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:18:53]wFMCommunicate OK [12:18:53]requested_item fd.num is exist - process it [12:18:53]SAM_PROTO_GetFieldsCounters [12:18:53]wFMCommunicate request_size=4 [12:18:53]MH_SAM_APDU [12:18:53]CAPDU: 80 13 00 00 [12:18:53]Write to MH i2c: E2 08 00 73 0A 80 13 00 00 00 00 00 00 F9 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:54]Read from MH i2c: E2 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 62 00 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 62 00 73 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 77 86 00 00 0E 04 04 00 45 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 C9 [12:18: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 77 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:54]wFMCommunicate OK [12:18:54]SAM_PROTO_GetFieldsCounters done [12:18:54]requested_item shift.num is exist - process it [12:18:54]requested_item shift.opened is exist - process it [12:18:54]req_shift_opened [12:18:54]FM_GetShiftState [12:18:54]SAM_PROTO_GetShiftState [12:18:54]wFMCommunicate request_size=4 [12:18:54]MH_SAM_APDU [12:18:54]CAPDU: 80 13 01 00 [12:18:54]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [12:18:54]Write i2c OK [12:18:54]MH_I2C_Read... [12:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:54]Read from MH i2c: E2 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 0E 00 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 13 [12:18:54]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [12:18:54]wFMCommunicate OK [12:18:54]SAM_PROTO_GetShiftState done [12:18:54]FM_GetShiftState done [12:18:54]req_shift_opened done [12:18:54]requested_item shift.open_date is exist - process it [12:18:54]req_shift_open_date [12:18:54]req_shift_open_date done [12:18:54]produce_requested_data done [12:18:54]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34423,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [12:18:54]process_action_free close_receipt [12:18:54]json_value_free [12:18:54]json_value_free done [12:18:54]process_json_proto returns [12:18:54]Send response to host [12:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34423,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [12:18:54]free response buf [12:18:54]execute_script done [12:18:54]execute_script returns [12:18:54]free content buf [12:18:54]Sock 8.Close socket [12:18:54]Sock 8.Thread stoped [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:51]accept exits with 9 [13:08:51]New connection [13:08:51]New thread 3066510692 created [13:08:51]Thread 3066654052 joined [13:08:51]Waiting for new connection... [13:08:51] Sock 9.Parse request [13:08:51]Sock 9.Check first char [13:08:51]Sock 9.First char is OK [13:08:51]request: POST /json_proto HTTP/1.0 [13:08:51]Method: POST [13:08:51]URL: /json_proto [13:08:51]Method is POST - this is cgi request [13:08:51]url: /json_proto [13:08:51]query_string will be loaded in cgi processing [13:08:51]execute_cgi json_proto POST (null) [13:08:51]execute_cgi path=json_proto method=POST [13:08:51]POST find Content-Length [13:08:51]Host: 172.17.38.134:8080 [13:08:51]Content-Length: 987 [13:08:51]Content-Type: application/json [13:08:51] [13:08:51]POST finish read [13:08:51]Found Content-Length = 987 [13:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184197", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:51]execute_script... [13:08:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184197", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:51]POST & json_proto [13:08:51]process_json_proto [13:08:51]json parsed OK: [13:08:51]protocol is kg_v1.0 [13:08:51]action value=close_receipt [13:08:51]process_action close_receipt [13:08:51]cmd_close_receipt [13:08:51]MH_GetDate [13:08:51]Write to MH i2c: F0 00 00 75 0A 6E [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: F0 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: F0 09 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: F0 09 00 75 0A 00 E5 29 74 66 13 9C 7C 64 EE [13:08:51]GetLastDocTimeStamp 1718885931 [13:08:51]current date 1718888933 [13:08:51]FM_GetShiftState [13:08:51]SAM_PROTO_GetShiftState [13:08:51]wFMCommunicate request_size=4 [13:08:51]MH_SAM_APDU [13:08:51]CAPDU: 80 13 01 00 [13:08:51]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:51]Read from MH i2c: E2 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 0E 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 15 [13:08:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:08:51]wFMCommunicate OK [13:08:51]SAM_PROTO_GetShiftState done [13:08:51]FM_GetShiftState done [13:08:51]opened in 1718843069 [13:08:51]opened+sec_in_day 1718929469 [13:08:51]quantity*price = 11000 [13:08:51]sum+1 = 11001 [13:08:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 34 20.06.2024 13:08 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34424 ФПД: 226916865787196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130853&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34424&fm=226916865787196&tin=02508201610067®Number=0000000000092786&sum=20000 0 [13:08:52]StoreToDocumentArchive [13:08:52]shift 325 fd 34424 [13:08:52]save to /storage/0325/doc_00034424 [13:08:52]save last doc name /storage/0325/doc_00034424 to /storage/kkm_last_doc_name [13:08:52]save OK [13:08:52]Clear old archive folders... [13:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=423 [13:08:52]tlvbuf is 001EFBC0 [13:08:52]SAM_PROTO_ClearQueue [13:08:52]wFMCommunicate request_size=4 [13:08:52]MH_SAM_APDU [13:08:52]CAPDU: 80 09 00 00 [13:08:52]Write to MH i2c: E2 08 00 83 0A 80 09 00 00 00 00 00 00 FF [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:52]Read from MH i2c: E2 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 03 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [13:08:52]RAPDU: 90 00 [13:08:52]wFMCommunicate OK [13:08:52]SAM_PROTO_ClearQueue done [13:08:52]KKMCreateOFDPacket [13:08:52]OFDProtocolAddRootSTLVToBuf [13:08:52]FM_MakeSignedData [13:08:52]FM_MakeSignedData [13:08:52]SAM_PROTO_SignData [13:08:52]wFMCommunicate request_size=4 [13:08:52]MH_SAM_APDU [13:08:52]CAPDU: 80 0D 01 02 [13:08:52]Write to MH i2c: E2 08 00 84 0A 80 0D 01 02 00 00 00 00 07 [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:52]Read from MH i2c: E2 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 03 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [13:08:52]RAPDU: 90 00 [13:08:52]wFMCommunicate OK [13:08:52]wFMCommunicate request_size=255 [13:08:52]MH_SAM_APDU [13:08:52]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 [13:08:52]Write to MH i2c: E2 02 01 85 0A 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 00 3C [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [13:08:53]RAPDU: 90 00 [13:08:53]wFMCommunicate OK [13:08:53]wFMCommunicate request_size=182 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E5 29 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 78 86 00 00 35 04 06 00 CE 61 33 2D C5 3C [13:08:53]Write to MH i2c: E2 B9 00 86 0A 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E5 29 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 78 86 00 00 35 04 06 00 CE 61 33 2D C5 3C 00 00 34 [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [13:08:53]RAPDU: 90 00 [13:08:53]wFMCommunicate OK [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 0D 03 02 [13:08:53]Write to MH i2c: E2 08 00 87 0A 80 0D 03 02 00 00 00 00 0C [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0B 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0B 00 87 0A 00 BE 35 86 A5 0C 71 53 11 90 00 0C [13:08:53]RAPDU: BE 35 86 A5 0C 71 53 11 90 00 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_SignData done [13:08:53]FM_MakeSignedData done [13:08:53]CreateOFDProtocolMessage [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 11 00 00 [13:08:53]Write to MH i2c: E2 08 00 88 0A 80 11 00 00 00 00 00 00 0C [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 88 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 61 [13:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:08:53]wFMCommunicate OK [13:08:53]CreateOFDProtocolMessage done [13:08:53]OFDSenderStorePacket 34424 [13:08:53]StoreOFDPacket docnum=34424 [13:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 BB 01 00 00 BA 54 B3 01 4A 44 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E5 29 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 78 86 00 00 35 04 06 00 CE 61 33 2D C5 3C BE 35 86 A5 0C 71 53 11 [13:08:53]CheckFolder [13:08:53]dirname=/storage/ofd_packets [13:08:53]CheckFolder done [13:08:53]ProducePacketName [13:08:53]name=ofd_packets/00034424 [13:08:53]NVStorageSaveData ofd_packets/00034424 [13:08:53]File name is /storage/ofd_packets/00034424 [13:08:53]Write 473 bytes [13:08:53]NVStorageSaveData done [13:08:53]OFDSenderStorePacket done [13:08:53]KKMCreateOFDPacket done [13:08:53]NVStorageSaveData kkm_last_timestamp [13:08:53]File name is /storage/kkm_last_timestamp [13:08:53]Write 4 bytes [13:08:53]NVStorageSaveData done [13:08:53]ExternCall_PrintAddStr [13:08:53]wPrintStart [13:08:53]Write to MH i2c: 01 00 00 89 0A 93 [13:08:53]OFD Sender: Processing packet 34424 [packets to send 8, broken 7] [13:08:53]ProducePacketName [13:08:53]name=ofd_packets/00034424 [13:08:53]OFD Sender: To server: pG, [13:08:53]CommunicateWithHost lk.salyk.kg:30040 [13:08:53]ConnectInit lk.salyk.kg [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: 01 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: 01 07 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 FF 0F A8 [13:08:53]RasterBufferAndPrint [13:08:53]line Счет N : (3)184197 [13:08:53]line ИНН: 02508201610067 [13:08:53]line Контрольно-Кассовый Чек [13:08:53]line ПРОДАЖА [13:08:53]line Товар: 4870022003305 [13:08:53]line Напиток Gorilla эн нат ж/б 0,5/0,45л [13:08:53]line 1.000 * 110.00 [13:08:53]line = 110.00 [13:08:53]line НДС 12% НСП 1% [13:08:53]line > о реализуемом товаре [13:08:53]line Товар: 4870235681079 [13:08:53]line Grizzly волнистые Сладкий чили 55 гр [13:08:53]line 1.000 * 90.00 [13:08:53]line = 90.00 [13:08:53]line НДС 12% НСП 1% [13:08:53]line > о реализуемом товаре [13:08:53]line ИТОГО: 200.00 [13:08:53]line НСП 1% : 1.77 [13:08:53]line НДС 12% : 21.24 [13:08:53]line Наличными: 200.00 [13:08:53]line Безнал.: 0.00 [13:08:53]line Место: АЗС № 120 "Партнер Нефть" [13:08:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:08:53]line СНО: Общий режим [13:08:53]line Чек 34 20.06.2024 13:08 [13:08:53]line Смена: 325 ФФД: 1.0 [13:08:53]line ЗНМ: 0300000172 [13:08:53]line РНМ: 0000000000092786 [13:08:53]line Версия ККМ: 001 [13:08:53]line ФМ: 0000000000875095 [13:08:53]line ФД: 34424 [13:08:53]line ФПД: 226916865787196 [13:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130853&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34424&fm=226916865787196&tin=02508201610067®Number=0000000000092786&sum=20000 [13:08:53]line 0 [13:08:53]written 0, free lines is 4095 [13:08:54]Connected sock=10 [13:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 BB 01 00 00 BA 54 B3 01 4A 44 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E5 29 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 78 86 00 00 35 04 06 00 CE 61 33 2D C5 3C BE 35 86 A5 0C 71 53 11 [13:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 86 A8 47 00 D1 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 78 86 00 00 F4 03 04 00 AF D0 73 66 B6 04 01 00 00 D9 97 24 BC B8 F8 F5 70 [13:08:54]CommunicateWithHost err = 0 [13:08:54]CheckOFDResponse [13:08:54]1017 (14) - 77093643461234 [13:08:54]1041 (16) - 0000000000875095 [13:08:54]1040 (4) - 34424 [13:08:54]1012 (4) - 20.06.2024 06:48 [13:08:54]1206 (1) - 0 [13:08:54]OFD Sender: Remove packet 34424 [13:08:54]ProducePacketName [13:08:54]name=ofd_packets/00034424 [13:08:54]NVStorageDeleteData [13:08:54]Write to MH i2c: 01 00 00 B9 0A C3 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 83 0C 59 [13:08:54]RasterBufferAndPrint [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]written 0, free lines is 3211 [13:08:54]MH_Cut [13:08:54]Write to MH i2c: D1 01 00 C0 0A 01 9C [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 01 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 01 00 C0 0A 00 9B [13:08:54]Write to MH i2c: 01 00 00 C1 0A CB [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]OFD Sender: No OFD packet to send [13:08:55]*** Cut start [13:08:55]*** Partial cut [13:08:55]*** CUTSNS_PIN = 1 [13:08:55]*** CUTSNS_PIN = 0 [13:08:55]*** Brake cut motor [13:08:55]Read from MH i2c: 01 [13:08:55]MH_I2C_Read... [13:08:55]*** Stop cut motor [13:08:55]*** Cut end [13:08:55]Read from MH i2c: 01 07 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [13:08:55]process_action close_receipt done [13:08:55]requested_data is exist [13:08:55]produce_requested_data [13:08:55]requested_item fm.sn is exist - process it [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 11 00 00 [13:08:55]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:55]Read from MH i2c: E2 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 17 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9B [13:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:08:55]wFMCommunicate OK [13:08:55]requested_item fd.num is exist - process it [13:08:55]SAM_PROTO_GetFieldsCounters [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 13 00 00 [13:08:55]Write to MH i2c: E2 08 00 C3 0A 80 13 00 00 00 00 00 00 49 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 62 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 62 00 C3 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 78 86 00 00 0E 04 04 00 45 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 1D [13:08: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 78 86 00 00 0E 04 04 00 45 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 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetFieldsCounters done [13:08:56]requested_item shift.num is exist - process it [13:08:56]requested_item shift.opened is exist - process it [13:08:56]req_shift_opened [13:08:56]FM_GetShiftState [13:08:56]SAM_PROTO_GetShiftState [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 13 01 00 [13:08:56]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 63 [13:08:56]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetShiftState done [13:08:56]FM_GetShiftState done [13:08:56]req_shift_opened done [13:08:56]requested_item shift.open_date is exist - process it [13:08:56]req_shift_open_date [13:08:56]req_shift_open_date done [13:08:56]produce_requested_data done [13:08:56]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34424,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:08:56]process_action_free close_receipt [13:08:56]json_value_free [13:08:56]json_value_free done [13:08:56]process_json_proto returns [13:08:56]Send response to host [13:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34424,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:08:56]free response buf [13:08:56]execute_script done [13:08:56]execute_script returns [13:08:56]free content buf [13:08:56]Sock 9.Close socket [13:08:56]Sock 9.Thread stoped [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:17:12]accept exits with 8 [13:17:12]New connection [13:17:12]New thread 3066654052 created [13:17:12]Thread 3066510692 joined [13:17:12]Waiting for new connection... [13:17:12] Sock 8.Parse request [13:17:12]Sock 8.Check first char [13:17:12]Sock 8.First char is OK [13:17:12]request: POST /json_proto HTTP/1.0 [13:17:12]Method: POST [13:17:12]URL: /json_proto [13:17:12]Method is POST - this is cgi request [13:17:12]url: /json_proto [13:17:12]query_string will be loaded in cgi processing [13:17:12]execute_cgi json_proto POST (null) [13:17:12]execute_cgi path=json_proto method=POST [13:17:12]POST find Content-Length [13:17:12]Host: 172.17.38.134:8080 [13:17:12]Content-Length: 811 [13:17:12]Content-Type: application/json [13:17:12] [13:17:12]POST finish read [13:17:12]Found Content-Length = 811 [13:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]execute_script... [13:17: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)673261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:12]POST & json_proto [13:17:12]process_json_proto [13:17:12]json parsed OK: [13:17:12]protocol is kg_v1.0 [13:17:12]action value=close_receipt [13:17:12]process_action close_receipt [13:17:12]cmd_close_receipt [13:17:12]MH_GetDate [13:17:12]Write to MH i2c: F0 00 00 C5 0A BE [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: F0 09 00 C5 0A 00 DA 2B 74 66 13 9C 7C 64 35 [13:17:12]GetLastDocTimeStamp 1718888933 [13:17:12]current date 1718889434 [13:17:12]FM_GetShiftState [13:17:12]SAM_PROTO_GetShiftState [13:17:12]wFMCommunicate request_size=4 [13:17:12]MH_SAM_APDU [13:17:12]CAPDU: 80 13 01 00 [13:17:12]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [13:17:12]Write i2c OK [13:17:12]MH_I2C_Read... [13:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:12]Read from MH i2c: E2 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 [13:17:12]MH_I2C_Read... [13:17:12]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 65 [13:17:12]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:17:12]wFMCommunicate OK [13:17:12]SAM_PROTO_GetShiftState done [13:17:12]FM_GetShiftState done [13:17:12]opened in 1718843069 [13:17:12]opened+sec_in_day 1718929469 [13:17:12]quantity*price = 1093500 [13:17:12]sum+1 = 1093501 [13:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 35 20.06.2024 13:17 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34425 ФПД: 105193612105039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131714&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34425&fm=105193612105039&tin=02508201610067®Number=0000000000092786&sum=1093500 [13:17:14]StoreToDocumentArchive [13:17:14]shift 325 fd 34425 [13:17:14]save to /storage/0325/doc_00034425 [13:17:14]save last doc name /storage/0325/doc_00034425 to /storage/kkm_last_doc_name [13:17:14]save OK [13:17:14]Clear old archive folders... [13:17:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:17:14]tlvbuf is 0021A630 [13:17:14]SAM_PROTO_ClearQueue [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 09 00 00 [13:17:14]Write to MH i2c: E2 08 00 D3 0A 80 09 00 00 00 00 00 00 4F [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]SAM_PROTO_ClearQueue done [13:17:14]KKMCreateOFDPacket [13:17:14]OFDProtocolAddRootSTLVToBuf [13:17:14]FM_MakeSignedData [13:17:14]FM_MakeSignedData [13:17:14]SAM_PROTO_SignData [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 01 02 [13:17:14]Write to MH i2c: E2 08 00 D4 0A 80 0D 01 02 00 00 00 00 57 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=255 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA 2B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 79 86 00 00 35 04 06 00 [13:17:14]Write to MH i2c: E2 02 01 D5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA 2B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 79 86 00 00 35 04 06 00 00 00 C2 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=11 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 02 02 06 5F AC 4B E1 D5 4F [13:17:14]Write to MH i2c: E2 0E 00 D6 0A 80 0D 02 02 06 00 5F AC 4B E1 D5 4F 00 00 C1 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [13:17:14]RAPDU: 90 00 [13:17:14]wFMCommunicate OK [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 0D 03 02 [13:17:14]Write to MH i2c: E2 08 00 D7 0A 80 0D 03 02 00 00 00 00 5C [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 0B 00 D7 0A 00 D6 74 31 38 65 F9 07 56 90 00 CB [13:17:14]RAPDU: D6 74 31 38 65 F9 07 56 90 00 [13:17:14]wFMCommunicate OK [13:17:14]SAM_PROTO_SignData done [13:17:14]FM_MakeSignedData done [13:17:14]CreateOFDProtocolMessage [13:17:14]wFMCommunicate request_size=4 [13:17:14]MH_SAM_APDU [13:17:14]CAPDU: 80 11 00 00 [13:17:14]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:14]Read from MH i2c: E2 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B1 [13:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:17:14]wFMCommunicate OK [13:17:14]CreateOFDProtocolMessage done [13:17:14]OFDSenderStorePacket 34425 [13:17:14]StoreOFDPacket docnum=34425 [13:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 48 FB 08 01 B9 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA 2B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 79 86 00 00 35 04 06 00 5F AC 4B E1 D5 4F D6 74 31 38 65 F9 07 56 [13:17:14]CheckFolder [13:17:14]dirname=/storage/ofd_packets [13:17:14]CheckFolder done [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00034425 [13:17:14]NVStorageSaveData ofd_packets/00034425 [13:17:14]File name is /storage/ofd_packets/00034425 [13:17:14]Write 302 bytes [13:17:14]NVStorageSaveData done [13:17:14]OFDSenderStorePacket done [13:17:14]KKMCreateOFDPacket done [13:17:14]NVStorageSaveData kkm_last_timestamp [13:17:14]File name is /storage/kkm_last_timestamp [13:17:14]Write 4 bytes [13:17:14]NVStorageSaveData done [13:17:14]ExternCall_PrintAddStr [13:17:14]wPrintStart [13:17:14]Write to MH i2c: 01 00 00 D9 0A E3 [13:17:14]Write i2c OK [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 [13:17:14]MH_I2C_Read... [13:17:14]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [13:17:14]RasterBufferAndPrint [13:17:14]line Счет N : (1)673261 [13:17:14]line ИНН: 02508201610067 [13:17:14]line Контрольно-Кассовый Чек [13:17:14]line ПРОДАЖА [13:17:14]line ТРК (МРК, ГНК) : 11 [13:17:14]line Товар: 2710194210 [13:17:14]line ДТ(л)-К-5 [13:17:14]line 150.000 * 72.90 [13:17:14]line = 10935.00 [13:17:14]line НДС 12% НСП 1% [13:17:14]line > о реализуемом товаре [13:17:14]line ИТОГО: 10935.00 [13:17:14]line НСП 1% : 96.77 [13:17:14]line НДС 12% : 1161.24 [13:17:14]line Наличными: 0.00 [13:17:14]line Безнал.: 10935.00 [13:17:14]line Место: АЗС № 120 "Партнер Нефть" [13:17:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:17:14]line СНО: Общий режим [13:17:14]line Чек 35 20.06.2024 13:17 [13:17:14]line Смена: 325 ФФД: 1.0 [13:17:14]line ЗНМ: 0300000172 [13:17:14]line РНМ: 0000000000092786 [13:17:14]line Версия ККМ: 001 [13:17:14]line Платежная система: O! деньги [13:17:14]line ФМ: 0000000000875095 [13:17:14]line ФД: 34425 [13:17:14]line ФПД: 105193612105039 [13:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131714&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34425&fm=105193612105039&tin=02508201610067®Number=0000000000092786&sum=1093500 [13:17:14]OFD Sender: Processing packet 34425 [packets to send 8, broken 7] [13:17:14]ProducePacketName [13:17:14]name=ofd_packets/00034425 [13:17:14]OFD Sender: To server: pG, [13:17:14]CommunicateWithHost lk.salyk.kg:30040 [13:17:14]ConnectInit lk.salyk.kg [13:17:15]written 0, free lines is 4095 [13:17:15]Connected sock=10 [13:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 48 FB 08 01 B9 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 DA 2B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 79 86 00 00 35 04 06 00 5F AC 4B E1 D5 4F D6 74 31 38 65 F9 07 56 [13:17:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DD C9 47 00 20 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 35 30 39 35 10 04 04 00 79 86 00 00 F4 03 04 00 A4 D2 73 66 B6 04 01 00 00 EE 9C 0C F7 07 B7 05 F6 [13:17:15]CommunicateWithHost err = 0 [13:17:15]CheckOFDResponse [13:17:15]1017 (14) - 77093643461234 [13:17:15]1041 (16) - 0000000000875095 [13:17:15]1040 (4) - 34425 [13:17:15]1012 (4) - 20.06.2024 06:56 [13:17:15]1206 (1) - 0 [13:17:15]OFD Sender: Remove packet 34425 [13:17:15]ProducePacketName [13:17:15]name=ofd_packets/00034425 [13:17:15]NVStorageDeleteData [13:17:15]Write to MH i2c: 01 00 00 03 0B 0E [13:17:15]Write i2c OK [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: 01 [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: 01 07 00 [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 F6 0C 17 [13:17:15]RasterBufferAndPrint [13:17:15]line [13:17:15]line [13:17:15]line [13:17:15]line [13:17:15]line [13:17:15]written 0, free lines is 3324 [13:17:15]MH_Cut [13:17:15]Write to MH i2c: D1 01 00 0A 0B 01 E7 [13:17:15]Write i2c OK [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: D1 [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: D1 01 00 [13:17:15]MH_I2C_Read... [13:17:15]Read from MH i2c: D1 01 00 0A 0B 00 E6 [13:17:15]Write to MH i2c: 01 00 00 0B 0B 16 [13:17:15]Write i2c OK [13:17:15]MH_I2C_Read... [13:17:15]OFD Sender: No OFD packet to send [13:17:16]*** Cut start [13:17:16]*** Partial cut [13:17:16]*** CUTSNS_PIN = 1 [13:17:16]*** CUTSNS_PIN = 0 [13:17:16]*** Brake cut motor [13:17:16]Read from MH i2c: 01 [13:17:16]MH_I2C_Read... [13:17:16]*** Stop cut motor [13:17:16]*** Cut end [13:17:16]Read from MH i2c: 01 07 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FF 0F 2B [13:17:16]process_action close_receipt done [13:17:16]requested_data is exist [13:17:16]produce_requested_data [13:17:16]requested_item fm.sn is exist - process it [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 11 00 00 [13:17:16]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E6 [13:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:17:16]wFMCommunicate OK [13:17:16]requested_item fd.num is exist - process it [13:17:16]SAM_PROTO_GetFieldsCounters [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 00 00 [13:17:16]Write to MH i2c: E2 08 00 0D 0B 80 13 00 00 00 00 00 00 94 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:16]Read from MH i2c: E2 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 [13:17:16]MH_I2C_Read... [13:17:16]Read from MH i2c: E2 62 00 0D 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 79 86 00 00 0E 04 04 00 45 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 6C [13:17: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 79 86 00 00 0E 04 04 00 45 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 [13:17:16]wFMCommunicate OK [13:17:16]SAM_PROTO_GetFieldsCounters done [13:17:16]requested_item shift.num is exist - process it [13:17:16]requested_item shift.opened is exist - process it [13:17:16]req_shift_opened [13:17:16]FM_GetShiftState [13:17:16]SAM_PROTO_GetShiftState [13:17:16]wFMCommunicate request_size=4 [13:17:16]MH_SAM_APDU [13:17:16]CAPDU: 80 13 01 00 [13:17:16]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [13:17:16]Write i2c OK [13:17:16]MH_I2C_Read... [13:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:17]Read from MH i2c: E2 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: E2 0E 00 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AE [13:17:17]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:17:17]wFMCommunicate OK [13:17:17]SAM_PROTO_GetShiftState done [13:17:17]FM_GetShiftState done [13:17:17]req_shift_opened done [13:17:17]requested_item shift.open_date is exist - process it [13:17:17]req_shift_open_date [13:17:17]req_shift_open_date done [13:17:17]produce_requested_data done [13:17:17]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34425,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:17:17]process_action_free close_receipt [13:17:17]json_value_free [13:17:17]json_value_free done [13:17:17]process_json_proto returns [13:17:17]Send response to host [13:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34425,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:17:17]free response buf [13:17:17]execute_script done [13:17:17]execute_script returns [13:17:17]free content buf [13:17:17]Sock 8.Close socket [13:17:17]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:32:59]accept exits with 9 [13:32:59]New connection [13:32:59]New thread 3066510692 created [13:32:59]Thread 3066654052 joined [13:32:59]Waiting for new connection... [13:32:59] Sock 9.Parse request [13:32:59]Sock 9.Check first char [13:32:59]Sock 9.First char is OK [13:32:59]request: POST /json_proto HTTP/1.0 [13:32:59]Method: POST [13:32:59]URL: /json_proto [13:32:59]Method is POST - this is cgi request [13:32:59]url: /json_proto [13:32:59]query_string will be loaded in cgi processing [13:32:59]execute_cgi json_proto POST (null) [13:32:59]execute_cgi path=json_proto method=POST [13:32:59]POST find Content-Length [13:32:59]Host: 172.17.38.134:8080 [13:32:59]Content-Length: 1276 [13:32:59]Content-Type: application/json [13:32:59] [13:32:59]POST finish read [13:32:59]Found Content-Length = 1276 [13:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184198", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:59]execute_script... [13:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184198", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:59]POST & json_proto [13:32:59]process_json_proto [13:32:59]json parsed OK: [13:32:59]protocol is kg_v1.0 [13:32:59]action value=close_receipt [13:32:59]process_action close_receipt [13:32:59]cmd_close_receipt [13:32:59]MH_GetDate [13:32:59]Write to MH i2c: F0 00 00 0F 0B 09 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: F0 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: F0 09 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: F0 09 00 0F 0B 00 8D 2F 74 66 13 9C 7C 64 37 [13:32:59]GetLastDocTimeStamp 1718889434 [13:32:59]current date 1718890381 [13:32:59]FM_GetShiftState [13:32:59]SAM_PROTO_GetShiftState [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 13 01 00 [13:32:59]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 B0 [13:32:59]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:32:59]wFMCommunicate OK [13:32:59]SAM_PROTO_GetShiftState done [13:32:59]FM_GetShiftState done [13:32:59]opened in 1718843069 [13:32:59]opened+sec_in_day 1718929469 [13:32:59]quantity*price = 9500 [13:32:59]sum+1 = 9501 [13:32:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522008 Напиток Maxi Чай Грушевый 0,45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 36 20.06.2024 13:33 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34426 ФПД: 91956580981885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34426&fm=91956580981885&tin=02508201610067®Number=0000000000092786&sum=26000 0 [13:33:00]StoreToDocumentArchive [13:33:00]shift 325 fd 34426 [13:33:00]save to /storage/0325/doc_00034426 [13:33:00]save last doc name /storage/0325/doc_00034426 to /storage/kkm_last_doc_name [13:33:00]save OK [13:33:00]Clear old archive folders... [13:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=550 [13:33:00]tlvbuf is 00228220 [13:33:00]SAM_PROTO_ClearQueue [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 09 00 00 [13:33:00]Write to MH i2c: E2 08 00 1D 0B 80 09 00 00 00 00 00 00 9A [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 03 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [13:33:00]RAPDU: 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_ClearQueue done [13:33:00]KKMCreateOFDPacket [13:33:00]OFDProtocolAddRootSTLVToBuf [13:33:00]FM_MakeSignedData [13:33:00]FM_MakeSignedData [13:33:00]SAM_PROTO_SignData [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 0D 01 02 [13:33:00]Write to MH i2c: E2 08 00 1E 0B 80 0D 01 02 00 00 00 00 A2 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 03 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [13:33:00]RAPDU: 90 00 [13:33:00]wFMCommunicate OK [13:33:00]wFMCommunicate request_size=255 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 0D 02 02 FA 03 00 26 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 [13:33:01]Write to MH i2c: E2 02 01 1F 0B 80 0D 02 02 FA 00 03 00 26 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 A1 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [13:33:01]RAPDU: 90 00 [13:33:01]wFMCommunicate OK [13:33:01]wFMCommunicate request_size=255 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 0D 02 02 FA 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 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E 2F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 [13:33:01]Write to MH i2c: E2 02 01 20 0B 80 0D 02 02 FA 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 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E 2F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 16 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]OFD Sender: No OFD packet to send [13:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [13:33:01]RAPDU: 90 00 [13:33:01]wFMCommunicate OK [13:33:01]wFMCommunicate request_size=59 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7A 86 00 00 35 04 06 00 53 A2 4F 58 1C 7D [13:33:01]Write to MH i2c: E2 3E 00 21 0B 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7A 86 00 00 35 04 06 00 53 A2 4F 58 1C 7D 00 00 05 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [13:33:01]RAPDU: 90 00 [13:33:01]wFMCommunicate OK [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 0D 03 02 [13:33:01]Write to MH i2c: E2 08 00 22 0B 80 0D 03 02 00 00 00 00 A8 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0B 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0B 00 22 0B 00 76 07 0F 16 4F B8 29 32 90 00 AD [13:33:02]RAPDU: 76 07 0F 16 4F B8 29 32 90 00 [13:33:02]wFMCommunicate OK [13:33:02]SAM_PROTO_SignData done [13:33:02]FM_MakeSignedData done [13:33:02]CreateOFDProtocolMessage [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 11 00 00 [13:33:02]Write to MH i2c: E2 08 00 23 0B 80 11 00 00 00 00 00 00 A8 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 23 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 FD [13:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:33:02]wFMCommunicate OK [13:33:02]CreateOFDProtocolMessage done [13:33:02]OFDSenderStorePacket 34426 [13:33:02]StoreOFDPacket docnum=34426 [13:33:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 02 00 00 4F A7 32 02 6F CA 5A 03 01 00 03 00 26 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E 2F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7A 86 00 00 35 04 06 00 53 A2 4F 58 1C 7D 76 07 0F 16 4F B8 29 32 [13:33:02]CheckFolder [13:33:02]dirname=/storage/ofd_packets [13:33:02]CheckFolder done [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00034426 [13:33:02]NVStorageSaveData ofd_packets/00034426 [13:33:02]File name is /storage/ofd_packets/00034426 [13:33:02]Write 600 bytes [13:33:02]NVStorageSaveData done [13:33:02]OFDSenderStorePacket done [13:33:02]KKMCreateOFDPacket done [13:33:02]NVStorageSaveData kkm_last_timestamp [13:33:02]File name is /storage/kkm_last_timestamp [13:33:02]Write 4 bytes [13:33:02]NVStorageSaveData done [13:33:02]ExternCall_PrintAddStr [13:33:02]wPrintStart [13:33:02]Write to MH i2c: 01 00 00 24 0B 2F [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [13:33:02]RasterBufferAndPrint [13:33:02]line Счет N : (3)184198 [13:33:02]line ИНН: 02508201610067 [13:33:02]line Контрольно-Кассовый Чек [13:33:02]line ПРОДАЖА [13:33:02]line Товар: 4631162227163 [13:33:02]line Напиток газированный Mojito LEMON LIME ж [13:33:02]line 1.000 * 95.00 [13:33:02]line = 95.00 [13:33:02]line НДС 12% НСП 1% [13:33:02]line > о реализуемом товаре [13:33:02]line Товар: 4631150682851 [13:33:02]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [13:33:02]line 1.000 * 95.00 [13:33:02]line = 95.00 [13:33:02]line НДС 12% НСП 1% [13:33:02]line > о реализуемом товаре [13:33:02]line Товар: 4870202522008 [13:33:02]line Напиток Maxi Чай Грушевый 0,45л [13:33:02]line 1.000 * 70.00 [13:33:02]line = 70.00 [13:33:02]line НДС 12% НСП 1% [13:33:02]line > о реализуемом товаре [13:33:02]line ИТОГО: 260.00 [13:33:02]line НСП 1% : 2.30 [13:33:02]line НДС 12% : 27.61 [13:33:02]line Наличными: 260.00 [13:33:02]line Безнал.: 0.00 [13:33:02]line Место: АЗС № 120 "Партнер Нефть" [13:33:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:33:02]line СНО: Общий режим [13:33:02]line Чек 36 20.06.2024 13:33 [13:33:02]line Смена: 325 ФФД: 1.0 [13:33:02]line ЗНМ: 0300000172 [13:33:02]line РНМ: 0000000000092786 [13:33:02]line Версия ККМ: 001 [13:33:02]line ФМ: 0000000000875095 [13:33:02]line ФД: 34426 [13:33:02]line ФПД: 91956580981885 [13:33:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34426&fm=91956580981885&tin=02508201610067®Number=0000000000092786&sum=26000 [13:33:02]OFD Sender: Processing packet 34426 [packets to send 8, broken 7] [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00034426 [13:33:02]OFD Sender: To server: pG, [13:33:02]CommunicateWithHost lk.salyk.kg:30040 [13:33:02]ConnectInit lk.salyk.kg [13:33:02]line 0 [13:33:02]written 0, free lines is 4095 [13:33:02]Connected sock=11 [13:33:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 02 00 00 4F A7 32 02 6F CA 5A 03 01 00 03 00 26 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8E 2F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7A 86 00 00 35 04 06 00 53 A2 4F 58 1C 7D 76 07 0F 16 4F B8 29 32 [13:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 CE 7A 47 00 E8 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7A 86 00 00 F4 03 04 00 58 D6 73 66 B6 04 01 00 00 C0 94 AF 4D 27 AE 4C 6A [13:33:02]CommunicateWithHost err = 0 [13:33:02]CheckOFDResponse [13:33:02]1017 (14) - 77093643461234 [13:33:02]1041 (16) - 0000000000875095 [13:33:02]1040 (4) - 34426 [13:33:02]1012 (4) - 20.06.2024 07:12 [13:33:02]1206 (1) - 0 [13:33:02]OFD Sender: Remove packet 34426 [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00034426 [13:33:02]NVStorageDeleteData [13:33:03]Write to MH i2c: 01 00 00 5B 0B 66 [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 07 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 0B 0C 84 [13:33:03]RasterBufferAndPrint [13:33:03]line [13:33:03]line [13:33:03]line [13:33:03]line [13:33:03]line [13:33:03]written 0, free lines is 3090 [13:33:03]MH_Cut [13:33:03]Write to MH i2c: D1 01 00 62 0B 01 3F [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: D1 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: D1 01 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: D1 01 00 62 0B 00 3E [13:33:03]Write to MH i2c: 01 00 00 63 0B 6E [13:33:03]Write i2c OK [13:33:03]MH_I2C_Read... [13:33:03]OFD Sender: No OFD packet to send [13:33:03]*** Cut start [13:33:03]*** Partial cut [13:33:03]*** CUTSNS_PIN = 1 [13:33:03]*** CUTSNS_PIN = 0 [13:33:04]*** Brake cut motor [13:33:04]Read from MH i2c: 01 [13:33:04]MH_I2C_Read... [13:33:04]*** Stop cut motor [13:33:04]*** Cut end [13:33:04]Read from MH i2c: 01 07 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [13:33:04]process_action close_receipt done [13:33:04]requested_data is exist [13:33:04]produce_requested_data [13:33:04]requested_item fm.sn is exist - process it [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 11 00 00 [13:33:04]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3E [13:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:33:04]wFMCommunicate OK [13:33:04]requested_item fd.num is exist - process it [13:33:04]SAM_PROTO_GetFieldsCounters [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 13 00 00 [13:33:04]Write to MH i2c: E2 08 00 65 0B 80 13 00 00 00 00 00 00 EC [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 62 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 62 00 65 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7A 86 00 00 0E 04 04 00 45 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 C8 [13:33:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7A 86 00 00 0E 04 04 00 45 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 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_GetFieldsCounters done [13:33:04]requested_item shift.num is exist - process it [13:33:04]requested_item shift.opened is exist - process it [13:33:04]req_shift_opened [13:33:04]FM_GetShiftState [13:33:04]SAM_PROTO_GetShiftState [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 13 01 00 [13:33:04]Write to MH i2c: E2 08 00 66 0B 80 13 01 00 00 00 00 00 EE [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0E 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0E 00 66 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 06 [13:33:04]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_GetShiftState done [13:33:04]FM_GetShiftState done [13:33:04]req_shift_opened done [13:33:04]requested_item shift.open_date is exist - process it [13:33:04]req_shift_open_date [13:33:04]req_shift_open_date done [13:33:04]produce_requested_data done [13:33:04]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34426,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:33:04]process_action_free close_receipt [13:33:04]json_value_free [13:33:04]json_value_free done [13:33:04]process_json_proto returns [13:33:04]Send response to host [13:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34426,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:33:04]free response buf [13:33:04]execute_script done [13:33:04]execute_script returns [13:33:04]free content buf [13:33:04]Sock 9.Close socket [13:33:04]Sock 9.Thread stoped [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:35]accept exits with 8 [13:53:35]New connection [13:53:35]New thread 3066654052 created [13:53:35]Thread 3066510692 joined [13:53:35]Waiting for new connection... [13:53:35] Sock 8.Parse request [13:53:35]Sock 8.Check first char [13:53:35]Sock 8.First char is OK [13:53:35]request: POST /json_proto HTTP/1.0 [13:53:35]Method: POST [13:53:35]URL: /json_proto [13:53:35]Method is POST - this is cgi request [13:53:35]url: /json_proto [13:53:35]query_string will be loaded in cgi processing [13:53:35]execute_cgi json_proto POST (null) [13:53:35]execute_cgi path=json_proto method=POST [13:53:35]POST find Content-Length [13:53:35]Host: 172.17.38.134:8080 [13:53:35]Content-Length: 644 [13:53:35]Content-Type: application/json [13:53:35] [13:53:35]POST finish read [13:53:35]Found Content-Length = 644 [13:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184199", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:35]execute_script... [13:53:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184199", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:35]POST & json_proto [13:53:35]process_json_proto [13:53:35]json parsed OK: [13:53:35]protocol is kg_v1.0 [13:53:35]action value=close_receipt [13:53:35]process_action close_receipt [13:53:35]cmd_close_receipt [13:53:35]MH_GetDate [13:53:35]Write to MH i2c: F0 00 00 67 0B 61 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: F0 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: F0 09 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: F0 09 00 67 0B 00 61 34 74 66 13 9C 7C 64 68 [13:53:35]GetLastDocTimeStamp 1718890382 [13:53:35]current date 1718891617 [13:53:35]FM_GetShiftState [13:53:35]SAM_PROTO_GetShiftState [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 13 01 00 [13:53:35]Write to MH i2c: E2 08 00 68 0B 80 13 01 00 00 00 00 00 F0 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0E 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0E 00 68 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 08 [13:53:35]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_GetShiftState done [13:53:35]FM_GetShiftState done [13:53:35]opened in 1718843069 [13:53:35]opened+sec_in_day 1718929469 [13:53:35]quantity*price = 11500 [13:53:35]sum+1 = 11501 [13:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 20.06.2024 13:53 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34427 ФПД: 281426411199827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135337&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34427&fm=281426411199827&tin=02508201610067®Number=0000000000092786&sum=11500 0 [13:53:36]StoreToDocumentArchive [13:53:36]shift 325 fd 34427 [13:53:36]save to /storage/0325/doc_00034427 [13:53:36]save last doc name /storage/0325/doc_00034427 to /storage/kkm_last_doc_name [13:53:36]save OK [13:53:36]Clear old archive folders... [13:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:53:36]tlvbuf is 001CDF30 [13:53:36]SAM_PROTO_ClearQueue [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 09 00 00 [13:53:36]Write to MH i2c: E2 08 00 75 0B 80 09 00 00 00 00 00 00 F2 [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [13:53:36]RAPDU: 90 00 [13:53:36]wFMCommunicate OK [13:53:36]SAM_PROTO_ClearQueue done [13:53:36]KKMCreateOFDPacket [13:53:36]OFDProtocolAddRootSTLVToBuf [13:53:36]FM_MakeSignedData [13:53:36]FM_MakeSignedData [13:53:36]SAM_PROTO_SignData [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 0D 01 02 [13:53:36]Write to MH i2c: E2 08 00 76 0B 80 0D 01 02 00 00 00 00 FA [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [13:53:36]RAPDU: 90 00 [13:53:36]wFMCommunicate OK [13:53:36]wFMCommunicate request_size=255 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 61 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [13:53:36]Write to MH i2c: E2 02 01 77 0B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 61 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 1B [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [13:53:36]RAPDU: 90 00 [13:53:36]wFMCommunicate OK [13:53:36]wFMCommunicate request_size=39 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7B 86 00 00 35 04 06 00 FF F4 B1 45 1D 53 [13:53:36]Write to MH i2c: E2 2A 00 78 0B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7B 86 00 00 35 04 06 00 FF F4 B1 45 1D 53 00 00 14 [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [13:53:36]RAPDU: 90 00 [13:53:36]wFMCommunicate OK [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 0D 03 02 [13:53:36]Write to MH i2c: E2 08 00 79 0B 80 0D 03 02 00 00 00 00 FF [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 0B 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 0B 00 79 0B 00 A7 04 E0 75 C5 FB E2 6C 90 00 0E [13:53:36]RAPDU: A7 04 E0 75 C5 FB E2 6C 90 00 [13:53:36]wFMCommunicate OK [13:53:36]SAM_PROTO_SignData done [13:53:36]FM_MakeSignedData done [13:53:36]CreateOFDProtocolMessage [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 11 00 00 [13:53:36]Write to MH i2c: E2 08 00 7A 0B 80 11 00 00 00 00 00 00 FF [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:37]Read from MH i2c: E2 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 17 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 17 00 7A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 54 [13:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:53:37]wFMCommunicate OK [13:53:37]CreateOFDProtocolMessage done [13:53:37]OFDSenderStorePacket 34427 [13:53:37]StoreOFDPacket docnum=34427 [13:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 E0 56 24 01 D3 71 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 61 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7B 86 00 00 35 04 06 00 FF F4 B1 45 1D 53 A7 04 E0 75 C5 FB E2 6C [13:53:37]CheckFolder [13:53:37]dirname=/storage/ofd_packets [13:53:37]CheckFolder done [13:53:37]ProducePacketName [13:53:37]name=ofd_packets/00034427 [13:53:37]NVStorageSaveData ofd_packets/00034427 [13:53:37]File name is /storage/ofd_packets/00034427 [13:53:37]Write 330 bytes [13:53:37]NVStorageSaveData done [13:53:37]OFDSenderStorePacket done [13:53:37]KKMCreateOFDPacket done [13:53:37]NVStorageSaveData kkm_last_timestamp [13:53:37]File name is /storage/kkm_last_timestamp [13:53:37]Write 4 bytes [13:53:37]NVStorageSaveData done [13:53:37]ExternCall_PrintAddStr [13:53:37]wPrintStart [13:53:37]Write to MH i2c: 01 00 00 7B 0B 86 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 07 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [13:53:37]RasterBufferAndPrint [13:53:37]line Счет N : (3)184199 [13:53:37]line ИНН: 02508201610067 [13:53:37]line Контрольно-Кассовый Чек [13:53:37]line ПРОДАЖА [13:53:37]line Товар: 2000036210013 [13:53:37]line Кофе Капучино (GABB TRADE) [13:53:37]line 1.000 * 115.00 [13:53:37]line = 115.00 [13:53:37]line НДС 12% НСП 1% [13:53:37]line > о реализуемом товаре [13:53:37]line ИТОГО: 115.00 [13:53:37]line НСП 1% : 1.02 [13:53:37]line НДС 12% : 12.21 [13:53:37]line Наличными: 115.00 [13:53:37]line Безнал.: 0.00 [13:53:37]line Место: АЗС № 120 "Партнер Нефть" [13:53:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:53:37]line СНО: Общий режим [13:53:37]line Чек 37 20.06.2024 13:53 [13:53:37]line Смена: 325 ФФД: 1.0 [13:53:37]line ЗНМ: 0300000172 [13:53:37]line РНМ: 0000000000092786 [13:53:37]line Версия ККМ: 001 [13:53:37]line ФМ: 0000000000875095 [13:53:37]line ФД: 34427 [13:53:37]line ФПД: 281426411199827 [13:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135337&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34427&fm=281426411199827&tin=02508201610067®Number=0000000000092786&sum=11500 [13:53:37]line 0 [13:53:37]written 0, free lines is 4095 [13:53:37]OFD Sender: Processing packet 34427 [packets to send 8, broken 7] [13:53:37]ProducePacketName [13:53:37]name=ofd_packets/00034427 [13:53:37]OFD Sender: To server: pG, [13:53:37]CommunicateWithHost lk.salyk.kg:30040 [13:53:37]ConnectInit lk.salyk.kg [13:53:37]Connected sock=10 [13:53:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 E0 56 24 01 D3 71 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 61 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7B 86 00 00 35 04 06 00 FF F4 B1 45 1D 53 A7 04 E0 75 C5 FB E2 6C [13:53:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A8 7A 47 00 5B 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 35 30 39 35 10 04 04 00 7B 86 00 00 F4 03 04 00 2A DB 73 66 B6 04 01 00 00 06 AF 92 55 CE 6A EF D1 [13:53:37]CommunicateWithHost err = 0 [13:53:37]CheckOFDResponse [13:53:37]1017 (14) - 77093643461234 [13:53:37]1041 (16) - 0000000000875095 [13:53:37]1040 (4) - 34427 [13:53:37]1012 (4) - 20.06.2024 07:32 [13:53:37]1206 (1) - 0 [13:53:37]OFD Sender: Remove packet 34427 [13:53:37]ProducePacketName [13:53:37]name=ofd_packets/00034427 [13:53:37]NVStorageDeleteData [13:53:37]Write to MH i2c: 01 00 00 A3 0B AE [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 07 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 10 0D D2 [13:53:37]RasterBufferAndPrint [13:53:37]line [13:53:37]line [13:53:37]line [13:53:37]line [13:53:37]line [13:53:37]written 0, free lines is 3354 [13:53:37]MH_Cut [13:53:37]Write to MH i2c: D1 01 00 AA 0B 01 87 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: D1 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: D1 01 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: D1 01 00 AA 0B 00 86 [13:53:37]Write to MH i2c: 01 00 00 AB 0B B6 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]OFD Sender: No OFD packet to send [13:53:38]*** Cut start [13:53:38]*** Partial cut [13:53:38]*** CUTSNS_PIN = 1 [13:53:38]*** CUTSNS_PIN = 0 [13:53:38]*** Brake cut motor [13:53:38]Read from MH i2c: 01 [13:53:38]MH_I2C_Read... [13:53:38]*** Stop cut motor [13:53:38]*** Cut end [13:53:38]Read from MH i2c: 01 07 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 FF 0F CB [13:53:38]process_action close_receipt done [13:53:38]requested_data is exist [13:53:38]produce_requested_data [13:53:38]requested_item fm.sn is exist - process it [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 11 00 00 [13:53:38]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 17 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 17 00 AC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 86 [13:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:53:38]wFMCommunicate OK [13:53:38]requested_item fd.num is exist - process it [13:53:38]SAM_PROTO_GetFieldsCounters [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 13 00 00 [13:53:38]Write to MH i2c: E2 08 00 AD 0B 80 13 00 00 00 00 00 00 34 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 62 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 62 00 AD 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7B 86 00 00 0E 04 04 00 45 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 14 [13:53: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7B 86 00 00 0E 04 04 00 45 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 [13:53:38]wFMCommunicate OK [13:53:38]SAM_PROTO_GetFieldsCounters done [13:53:38]requested_item shift.num is exist - process it [13:53:38]requested_item shift.opened is exist - process it [13:53:38]req_shift_opened [13:53:38]FM_GetShiftState [13:53:38]SAM_PROTO_GetShiftState [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 13 01 00 [13:53:38]Write to MH i2c: E2 08 00 AE 0B 80 13 01 00 00 00 00 00 36 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 0E 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 0E 00 AE 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 4E [13:53:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:53:39]wFMCommunicate OK [13:53:39]SAM_PROTO_GetShiftState done [13:53:39]FM_GetShiftState done [13:53:39]req_shift_opened done [13:53:39]requested_item shift.open_date is exist - process it [13:53:39]req_shift_open_date [13:53:39]req_shift_open_date done [13:53:39]produce_requested_data done [13:53:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34427,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:53:39]process_action_free close_receipt [13:53:39]json_value_free [13:53:39]json_value_free done [13:53:39]process_json_proto returns [13:53:39]Send response to host [13:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34427,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:53:39]free response buf [13:53:39]execute_script done [13:53:39]execute_script returns [13:53:39]free content buf [13:53:39]Sock 8.Close socket [13:53:39]Sock 8.Thread stoped [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]accept exits with 9 [13:54:22]New connection [13:54:22]New thread 3066510692 created [13:54:22]Thread 3066654052 joined [13:54:22]Waiting for new connection... [13:54:22] Sock 9.Parse request [13:54:22]Sock 9.Check first char [13:54:22]Sock 9.First char is OK [13:54:22]request: POST /json_proto HTTP/1.0 [13:54:22]Method: POST [13:54:22]URL: /json_proto [13:54:22]Method is POST - this is cgi request [13:54:22]url: /json_proto [13:54:22]query_string will be loaded in cgi processing [13:54:22]execute_cgi json_proto POST (null) [13:54:22]execute_cgi path=json_proto method=POST [13:54:22]POST find Content-Length [13:54:22]Host: 172.17.38.134:8080 [13:54:22]Content-Length: 734 [13:54:22]Content-Type: application/json [13:54:22] [13:54:22]POST finish read [13:54:22]Found Content-Length = 734 [13:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184200", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:22]execute_script... [13:54: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)184200", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:22]POST & json_proto [13:54:22]process_json_proto [13:54:22]json parsed OK: [13:54:22]protocol is kg_v1.0 [13:54:22]action value=close_receipt [13:54:22]process_action close_receipt [13:54:22]cmd_close_receipt [13:54:22]MH_GetDate [13:54:22]Write to MH i2c: F0 00 00 AF 0B A9 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: F0 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: F0 09 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: F0 09 00 AF 0B 00 90 34 74 66 13 9C 7C 64 DF [13:54:22]GetLastDocTimeStamp 1718891617 [13:54:22]current date 1718891664 [13:54:22]FM_GetShiftState [13:54:22]SAM_PROTO_GetShiftState [13:54:22]wFMCommunicate request_size=4 [13:54:22]MH_SAM_APDU [13:54:22]CAPDU: 80 13 01 00 [13:54:22]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [13:54:22]Write i2c OK [13:54:22]MH_I2C_Read... [13:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:22]Read from MH i2c: E2 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 0E 00 [13:54:22]MH_I2C_Read... [13:54:22]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 50 [13:54:22]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:54:22]wFMCommunicate OK [13:54:22]SAM_PROTO_GetShiftState done [13:54:22]FM_GetShiftState done [13:54:22]opened in 1718843069 [13:54:22]opened+sec_in_day 1718929469 [13:54:22]quantity*price = 39500 [13:54:22]sum+1 = 39501 [13:54:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 20.06.2024 13:54 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34428 ФПД: 107071049936564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135424&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34428&fm=107071049936564&tin=02508201610067®Number=0000000000092786&sum=39500 0 [13:54:23]StoreToDocumentArchive [13:54:23]shift 325 fd 34428 [13:54:23]save to /storage/0325/doc_00034428 [13:54:23]save last doc name /storage/0325/doc_00034428 to /storage/kkm_last_doc_name [13:54:23]save OK [13:54:23]Clear old archive folders... [13:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=306 [13:54:23]tlvbuf is 001E8250 [13:54:23]SAM_PROTO_ClearQueue [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 09 00 00 [13:54:23]Write to MH i2c: E2 08 00 BD 0B 80 09 00 00 00 00 00 00 3A [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [13:54:23]RAPDU: 90 00 [13:54:23]wFMCommunicate OK [13:54:23]SAM_PROTO_ClearQueue done [13:54:23]KKMCreateOFDPacket [13:54:23]OFDProtocolAddRootSTLVToBuf [13:54:23]FM_MakeSignedData [13:54:23]FM_MakeSignedData [13:54:23]SAM_PROTO_SignData [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 0D 01 02 [13:54:23]Write to MH i2c: E2 08 00 BE 0B 80 0D 01 02 00 00 00 00 42 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [13:54:23]RAPDU: 90 00 [13:54:23]wFMCommunicate OK [13:54:23]wFMCommunicate request_size=255 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 90 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 [13:54:23]Write to MH i2c: E2 02 01 BF 0B 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 90 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 00 60 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [13:54:23]RAPDU: 90 00 [13:54:23]wFMCommunicate OK [13:54:23]wFMCommunicate request_size=65 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7C 86 00 00 35 04 06 00 61 61 6B E5 AE B4 [13:54:23]Write to MH i2c: E2 44 00 C0 0B 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7C 86 00 00 35 04 06 00 61 61 6B E5 AE B4 00 00 13 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [13:54:23]RAPDU: 90 00 [13:54:23]wFMCommunicate OK [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 0D 03 02 [13:54:23]Write to MH i2c: E2 08 00 C1 0B 80 0D 03 02 00 00 00 00 47 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0B 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0B 00 C1 0B 00 AC FE 39 FF 28 FE 79 63 90 00 2C [13:54:23]RAPDU: AC FE 39 FF 28 FE 79 63 90 00 [13:54:23]wFMCommunicate OK [13:54:23]SAM_PROTO_SignData done [13:54:23]FM_MakeSignedData done [13:54:23]CreateOFDProtocolMessage [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 11 00 00 [13:54:23]Write to MH i2c: E2 08 00 C2 0B 80 11 00 00 00 00 00 00 47 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:24]Read from MH i2c: E2 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: E2 17 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: E2 17 00 C2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9C [13:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:54:24]wFMCommunicate OK [13:54:24]CreateOFDProtocolMessage done [13:54:24]OFDSenderStorePacket 34428 [13:54:24]StoreOFDPacket docnum=34428 [13:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 46 01 00 00 3C AE 3E 01 55 4A 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 90 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7C 86 00 00 35 04 06 00 61 61 6B E5 AE B4 AC FE 39 FF 28 FE 79 63 [13:54:24]CheckFolder [13:54:24]dirname=/storage/ofd_packets [13:54:24]CheckFolder done [13:54:24]ProducePacketName [13:54:24]name=ofd_packets/00034428 [13:54:24]NVStorageSaveData ofd_packets/00034428 [13:54:24]File name is /storage/ofd_packets/00034428 [13:54:24]Write 356 bytes [13:54:24]NVStorageSaveData done [13:54:24]OFDSenderStorePacket done [13:54:24]KKMCreateOFDPacket done [13:54:24]NVStorageSaveData kkm_last_timestamp [13:54:24]File name is /storage/kkm_last_timestamp [13:54:24]Write 4 bytes [13:54:24]NVStorageSaveData done [13:54:24]ExternCall_PrintAddStr [13:54:24]wPrintStart [13:54:24]Write to MH i2c: 01 00 00 C3 0B CE [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [13:54:24]RasterBufferAndPrint [13:54:24]line Счет N : (3)184200 [13:54:24]line ИНН: 02508201610067 [13:54:24]line Контрольно-Кассовый Чек [13:54:24]line ПРОДАЖА [13:54:24]line Товар: 0010420131003133 [13:54:24]line Уголь древесный Партнер Нефть 3кг [13:54:24]line 1.000 * 395.00 [13:54:24]line = 395.00 [13:54:24]line НДС 12% НСП 1% [13:54:24]line > о реализуемом товаре [13:54:24]line ИТОГО: 395.00 [13:54:24]line НСП 1% : 3.50 [13:54:24]line НДС 12% : 41.95 [13:54:24]line Наличными: 395.00 [13:54:24]line Безнал.: 0.00 [13:54:24]line Место: АЗС № 120 "Партнер Нефть" [13:54:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:54:24]line СНО: Общий режим [13:54:24]line Чек 38 20.06.2024 13:54 [13:54:24]line Смена: 325 ФФД: 1.0 [13:54:24]line ЗНМ: 0300000172 [13:54:24]line РНМ: 0000000000092786 [13:54:24]line Версия ККМ: 001 [13:54:24]line ФМ: 0000000000875095 [13:54:24]line ФД: 34428 [13:54:24]line ФПД: 107071049936564 [13:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135424&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34428&fm=107071049936564&tin=02508201610067®Number=0000000000092786&sum=39500 [13:54:24]line 0 [13:54:24]OFD Sender: Processing packet 34428 [packets to send 8, broken 7] [13:54:24]ProducePacketName [13:54:24]name=ofd_packets/00034428 [13:54:24]OFD Sender: To server: pG, [13:54:24]CommunicateWithHost lk.salyk.kg:30040 [13:54:24]ConnectInit lk.salyk.kg [13:54:24]written 0, free lines is 4095 [13:54:24]Connected sock=10 [13:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 46 01 00 00 3C AE 3E 01 55 4A 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 90 34 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7C 86 00 00 35 04 06 00 61 61 6B E5 AE B4 AC FE 39 FF 28 FE 79 63 [13:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 50 E7 47 00 49 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 35 30 39 35 10 04 04 00 7C 86 00 00 F4 03 04 00 5A DB 73 66 B6 04 01 00 00 EE 87 21 37 14 AE E2 84 [13:54:24]CommunicateWithHost err = 0 [13:54:24]CheckOFDResponse [13:54:24]1017 (14) - 77093643461234 [13:54:24]1041 (16) - 0000000000875095 [13:54:24]1040 (4) - 34428 [13:54:24]1012 (4) - 20.06.2024 07:33 [13:54:24]1206 (1) - 0 [13:54:24]OFD Sender: Remove packet 34428 [13:54:24]ProducePacketName [13:54:24]name=ofd_packets/00034428 [13:54:24]NVStorageDeleteData [13:54:24]Write to MH i2c: 01 00 00 EC 0B F7 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 E1 0C EB [13:54:24]RasterBufferAndPrint [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]line [13:54:24]written 0, free lines is 3303 [13:54:24]MH_Cut [13:54:24]Write to MH i2c: D1 01 00 F3 0B 01 D0 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 01 00 [13:54:24]MH_I2C_Read... [13:54:24]Read from MH i2c: D1 01 00 F3 0B 00 CF [13:54:24]Write to MH i2c: 01 00 00 F4 0B FF [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:25]OFD Sender: No OFD packet to send [13:54:25]*** Cut start [13:54:25]*** Partial cut [13:54:25]*** CUTSNS_PIN = 1 [13:54:25]*** CUTSNS_PIN = 0 [13:54:25]*** Brake cut motor [13:54:26]Read from MH i2c: 01 [13:54:26]MH_I2C_Read... [13:54:26]*** Stop cut motor [13:54:26]*** Cut end [13:54:26]Read from MH i2c: 01 07 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 FF 0F 14 [13:54:26]process_action close_receipt done [13:54:26]requested_data is exist [13:54:26]produce_requested_data [13:54:26]requested_item fm.sn is exist - process it [13:54:26]wFMCommunicate request_size=4 [13:54:26]MH_SAM_APDU [13:54:26]CAPDU: 80 11 00 00 [13:54:26]Write to MH i2c: E2 08 00 F5 0B 80 11 00 00 00 00 00 00 7A [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:26]Read from MH i2c: E2 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 17 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 17 00 F5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CF [13:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:54:26]wFMCommunicate OK [13:54:26]requested_item fd.num is exist - process it [13:54:26]SAM_PROTO_GetFieldsCounters [13:54:26]wFMCommunicate request_size=4 [13:54:26]MH_SAM_APDU [13:54:26]CAPDU: 80 13 00 00 [13:54:26]Write to MH i2c: E2 08 00 F6 0B 80 13 00 00 00 00 00 00 7D [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:26]Read from MH i2c: E2 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 62 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 62 00 F6 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7C 86 00 00 0E 04 04 00 45 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 61 [13:54: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7C 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:26]wFMCommunicate OK [13:54:26]SAM_PROTO_GetFieldsCounters done [13:54:26]requested_item shift.num is exist - process it [13:54:26]requested_item shift.opened is exist - process it [13:54:26]req_shift_opened [13:54:26]FM_GetShiftState [13:54:26]SAM_PROTO_GetShiftState [13:54:26]wFMCommunicate request_size=4 [13:54:26]MH_SAM_APDU [13:54:26]CAPDU: 80 13 01 00 [13:54:26]Write to MH i2c: E2 08 00 F7 0B 80 13 01 00 00 00 00 00 7F [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:26]Read from MH i2c: E2 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 0E 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: E2 0E 00 F7 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 97 [13:54:26]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:54:26]wFMCommunicate OK [13:54:26]SAM_PROTO_GetShiftState done [13:54:26]FM_GetShiftState done [13:54:26]req_shift_opened done [13:54:26]requested_item shift.open_date is exist - process it [13:54:26]req_shift_open_date [13:54:26]req_shift_open_date done [13:54:26]produce_requested_data done [13:54:26]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34428,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:54:26]process_action_free close_receipt [13:54:26]json_value_free [13:54:26]json_value_free done [13:54:26]process_json_proto returns [13:54:26]Send response to host [13:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34428,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:54:26]free response buf [13:54:26]execute_script done [13:54:26]execute_script returns [13:54:26]free content buf [13:54:26]Sock 9.Close socket [13:54:26]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:23]accept exits with 8 [13:57:23]New connection [13:57:23]New thread 3066654052 created [13:57:23]Thread 3066510692 joined [13:57:23]Waiting for new connection... [13:57:23] Sock 8.Parse request [13:57:23]Sock 8.Check first char [13:57:23]Sock 8.First char is OK [13:57:23]request: POST /json_proto HTTP/1.0 [13:57:23]Method: POST [13:57:23]URL: /json_proto [13:57:23]Method is POST - this is cgi request [13:57:23]url: /json_proto [13:57:23]query_string will be loaded in cgi processing [13:57:23]execute_cgi json_proto POST (null) [13:57:23]execute_cgi path=json_proto method=POST [13:57:23]POST find Content-Length [13:57:23]Host: 172.17.38.134:8080 [13:57:23]Content-Length: 848 [13:57:23]Content-Type: application/json [13:57:23] [13:57:23]POST finish read [13:57:23]Found Content-Length = 848 [13:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184201", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:23]execute_script... [13:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184201", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:23]POST & json_proto [13:57:23]process_json_proto [13:57:23]json parsed OK: [13:57:23]protocol is kg_v1.0 [13:57:23]action value=close_receipt [13:57:23]process_action close_receipt [13:57:23]cmd_close_receipt [13:57:23]MH_GetDate [13:57:23]Write to MH i2c: F0 00 00 F8 0B F2 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 09 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 09 00 F8 0B 00 45 35 74 66 13 9C 7C 64 DE [13:57:23]GetLastDocTimeStamp 1718891664 [13:57:23]current date 1718891845 [13:57:23]FM_GetShiftState [13:57:23]SAM_PROTO_GetShiftState [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 13 01 00 [13:57:23]Write to MH i2c: E2 08 00 F9 0B 80 13 01 00 00 00 00 00 81 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 F9 0B 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 99 [13:57:23]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_GetShiftState done [13:57:23]FM_GetShiftState done [13:57:23]opened in 1718843069 [13:57:23]opened+sec_in_day 1718929469 [13:57:23]quantity*price = 14000 [13:57:23]sum+1 = 14001 [13:57:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742078 Сигареты LD Silver 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 20.06.2024 13:57 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34429 ФПД: 125499889358093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135725&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34429&fm=125499889358093&tin=02508201610067®Number=0000000000092786&sum=27000 0 [13:57:24]StoreToDocumentArchive [13:57:24]shift 325 fd 34429 [13:57:24]save to /storage/0325/doc_00034429 [13:57:24]save last doc name /storage/0325/doc_00034429 to /storage/kkm_last_doc_name [13:57:24]save OK [13:57:24]Clear old archive folders... [13:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=366 [13:57:24]tlvbuf is 00232410 [13:57:24]SAM_PROTO_ClearQueue [13:57:24]wFMCommunicate request_size=4 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 09 00 00 [13:57:24]Write to MH i2c: E2 08 00 06 0C 80 09 00 00 00 00 00 00 84 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 03 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [13:57:24]RAPDU: 90 00 [13:57:24]wFMCommunicate OK [13:57:24]SAM_PROTO_ClearQueue done [13:57:24]KKMCreateOFDPacket [13:57:24]OFDProtocolAddRootSTLVToBuf [13:57:24]FM_MakeSignedData [13:57:24]FM_MakeSignedData [13:57:24]SAM_PROTO_SignData [13:57:24]wFMCommunicate request_size=4 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 0D 01 02 [13:57:24]Write to MH i2c: E2 08 00 07 0C 80 0D 01 02 00 00 00 00 8C [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 03 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [13:57:24]RAPDU: 90 00 [13:57:24]wFMCommunicate OK [13:57:24]wFMCommunicate request_size=255 [13:57:24]MH_SAM_APDU [13:57:24]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [13:57:24]Write to MH i2c: E2 02 01 08 0C 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 11 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]wFMCommunicate request_size=125 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 0D 02 02 78 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 45 35 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7D 86 00 00 35 04 06 00 72 24 38 53 15 0D [13:57:25]Write to MH i2c: E2 80 00 09 0C 80 0D 02 02 78 00 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 45 35 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7D 86 00 00 35 04 06 00 72 24 38 53 15 0D 00 00 E8 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 0D 03 02 [13:57:25]Write to MH i2c: E2 08 00 0A 0C 80 0D 03 02 00 00 00 00 91 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 0B 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 0B 00 0A 0C 00 70 7D 65 F8 9F 94 30 5E 90 00 9D [13:57:25]RAPDU: 70 7D 65 F8 9F 94 30 5E 90 00 [13:57:25]wFMCommunicate OK [13:57:25]SAM_PROTO_SignData done [13:57:25]FM_MakeSignedData done [13:57:25]CreateOFDProtocolMessage [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 11 00 00 [13:57:25]Write to MH i2c: E2 08 00 0B 0C 80 11 00 00 00 00 00 00 91 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 17 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 17 00 0B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E6 [13:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:57:25]wFMCommunicate OK [13:57:25]CreateOFDProtocolMessage done [13:57:25]OFDSenderStorePacket 34429 [13:57:25]StoreOFDPacket docnum=34429 [13:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 82 01 00 00 28 CC 7A 01 F2 C4 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 45 35 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7D 86 00 00 35 04 06 00 72 24 38 53 15 0D 70 7D 65 F8 9F 94 30 5E [13:57:25]CheckFolder [13:57:25]dirname=/storage/ofd_packets [13:57:25]CheckFolder done [13:57:25]ProducePacketName [13:57:25]name=ofd_packets/00034429 [13:57:25]NVStorageSaveData ofd_packets/00034429 [13:57:25]File name is /storage/ofd_packets/00034429 [13:57:25]Write 416 bytes [13:57:25]NVStorageSaveData done [13:57:25]OFDSenderStorePacket done [13:57:25]KKMCreateOFDPacket done [13:57:25]NVStorageSaveData kkm_last_timestamp [13:57:25]File name is /storage/kkm_last_timestamp [13:57:25]Write 4 bytes [13:57:25]NVStorageSaveData done [13:57:25]ExternCall_PrintAddStr [13:57:25]wPrintStart [13:57:25]Write to MH i2c: 01 00 00 0C 0C 18 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: 01 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: 01 07 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 FF 0F 2D [13:57:25]RasterBufferAndPrint [13:57:25]line Счет N : (3)184201 [13:57:25]line ИНН: 02508201610067 [13:57:25]line Контрольно-Кассовый Чек [13:57:25]line ПРОДАЖА [13:57:25]line Товар: 48747059 [13:57:25]line Сигареты Winston Legend Blue [13:57:25]line 1.000 * 140.00 [13:57:25]line = 140.00 [13:57:25]line НДС 12% НСП 1% [13:57:25]line > о реализуемом товаре [13:57:25]line Товар: 48742078 [13:57:25]line Сигареты LD Silver [13:57:25]line 1.000 * 130.00 [13:57:25]line = 130.00 [13:57:25]line НДС 12% НСП 1% [13:57:25]line > о реализуемом товаре [13:57:25]line ИТОГО: 270.00 [13:57:25]line НСП 1% : 2.39 [13:57:25]line НДС 12% : 28.67 [13:57:25]line Наличными: 270.00 [13:57:25]line Безнал.: 0.00 [13:57:25]line Место: АЗС № 120 "Партнер Нефть" [13:57:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:57:25]line СНО: Общий режим [13:57:25]line Чек 39 20.06.2024 13:57 [13:57:25]line Смена: 325 ФФД: 1.0 [13:57:25]line ЗНМ: 0300000172 [13:57:25]line РНМ: 0000000000092786 [13:57:25]line Версия ККМ: 001 [13:57:25]line ФМ: 0000000000875095 [13:57:25]line ФД: 34429 [13:57:25]line ФПД: 125499889358093 [13:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135725&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34429&fm=125499889358093&tin=02508201610067®Number=0000000000092786&sum=27000 [13:57:25]OFD Sender: Processing packet 34429 [packets to send 8, broken 7] [13:57:25]ProducePacketName [13:57:25]name=ofd_packets/00034429 [13:57:25]OFD Sender: To server: pG, [13:57:25]CommunicateWithHost lk.salyk.kg:30040 [13:57:25]ConnectInit lk.salyk.kg [13:57:25]line 0 [13:57:25]written 0, free lines is 4095 [13:57:25]Connected sock=10 [13:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 82 01 00 00 28 CC 7A 01 F2 C4 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 45 35 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7D 86 00 00 35 04 06 00 72 24 38 53 15 0D 70 7D 65 F8 9F 94 30 5E [13:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BE 2D 47 00 EB E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7D 86 00 00 F4 03 04 00 0F DC 73 66 B6 04 01 00 00 18 5D AE 0D 6C 1A 6D CC [13:57:26]CommunicateWithHost err = 0 [13:57:26]CheckOFDResponse [13:57:26]1017 (14) - 77093643461234 [13:57:26]1041 (16) - 0000000000875095 [13:57:26]1040 (4) - 34429 [13:57:26]1012 (4) - 20.06.2024 07:36 [13:57:26]1206 (1) - 0 [13:57:26]OFD Sender: Remove packet 34429 [13:57:26]ProducePacketName [13:57:26]name=ofd_packets/00034429 [13:57:26]NVStorageDeleteData [13:57:26]Write to MH i2c: 01 00 00 3B 0C 47 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 87 0C E1 [13:57:26]RasterBufferAndPrint [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]written 0, free lines is 3213 [13:57:26]MH_Cut [13:57:26]Write to MH i2c: D1 01 00 42 0C 01 20 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 01 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 01 00 42 0C 00 1F [13:57:26]Write to MH i2c: 01 00 00 43 0C 4F [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]OFD Sender: No OFD packet to send [13:57:26]*** Cut start [13:57:26]*** Partial cut [13:57:26]*** CUTSNS_PIN = 1 [13:57:26]*** CUTSNS_PIN = 0 [13:57:27]*** Brake cut motor [13:57:27]Read from MH i2c: 01 [13:57:27]MH_I2C_Read... [13:57:27]*** Stop cut motor [13:57:27]*** Cut end [13:57:27]Read from MH i2c: 01 07 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [13:57:27]process_action close_receipt done [13:57:27]requested_data is exist [13:57:27]produce_requested_data [13:57:27]requested_item fm.sn is exist - process it [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 11 00 00 [13:57:27]Write to MH i2c: E2 08 00 44 0C 80 11 00 00 00 00 00 00 CA [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 17 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 17 00 44 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1F [13:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:57:27]wFMCommunicate OK [13:57:27]requested_item fd.num is exist - process it [13:57:27]SAM_PROTO_GetFieldsCounters [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 13 00 00 [13:57:27]Write to MH i2c: E2 08 00 45 0C 80 13 00 00 00 00 00 00 CD [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 62 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 62 00 45 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7D 86 00 00 0E 04 04 00 45 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 B5 [13: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7D 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:27]wFMCommunicate OK [13:57:27]SAM_PROTO_GetFieldsCounters done [13:57:27]requested_item shift.num is exist - process it [13:57:27]requested_item shift.opened is exist - process it [13:57:27]req_shift_opened [13:57:27]FM_GetShiftState [13:57:27]SAM_PROTO_GetShiftState [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 13 01 00 [13:57:27]Write to MH i2c: E2 08 00 46 0C 80 13 01 00 00 00 00 00 CF [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:27]Read from MH i2c: E2 0E 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 0E 00 46 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E7 [13:57:27]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [13:57:27]wFMCommunicate OK [13:57:27]SAM_PROTO_GetShiftState done [13:57:27]FM_GetShiftState done [13:57:27]req_shift_opened done [13:57:27]requested_item shift.open_date is exist - process it [13:57:27]req_shift_open_date [13:57:27]req_shift_open_date done [13:57:27]produce_requested_data done [13:57:27]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34429,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [13:57:27]process_action_free close_receipt [13:57:27]json_value_free [13:57:27]json_value_free done [13:57:27]process_json_proto returns [13:57:27]Send response to host [13:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34429,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [13:57:27]free response buf [13:57:27]execute_script done [13:57:27]execute_script returns [13:57:27]free content buf [13:57:27]Sock 8.Close socket [13:57:27]Sock 8.Thread stoped [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]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:51]accept exits with 9 [14:07:51]New connection [14:07:51]New thread 3066510692 created [14:07:51]Thread 3066654052 joined [14:07:51]Waiting for new connection... [14:07:51] Sock 9.Parse request [14:07:51]Sock 9.Check first char [14:07:51]Sock 9.First char is OK [14:07:51]request: POST /json_proto HTTP/1.0 [14:07:51]Method: POST [14:07:51]URL: /json_proto [14:07:51]Method is POST - this is cgi request [14:07:51]url: /json_proto [14:07:51]query_string will be loaded in cgi processing [14:07:51]execute_cgi json_proto POST (null) [14:07:51]execute_cgi path=json_proto method=POST [14:07:51]POST find Content-Length [14:07:51]Host: 172.17.38.134:8080 [14:07:51]Content-Length: 616 [14:07:51]Content-Type: application/json [14:07:51] [14:07:51]POST finish read [14:07:51]Found Content-Length = 616 [14:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184202", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.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" ] } } [14:07:51]execute_script... [14:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184202", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.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" ] } } [14:07:51]POST & json_proto [14:07:51]process_json_proto [14:07:51]json parsed OK: [14:07:51]protocol is kg_v1.0 [14:07:51]action value=close_receipt [14:07:51]process_action close_receipt [14:07:51]cmd_close_receipt [14:07:51]MH_GetDate [14:07:51]Write to MH i2c: F0 00 00 47 0C 42 [14:07:51]Write i2c OK [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 09 00 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: F0 09 00 47 0C 00 B9 37 74 66 13 9C 7C 64 A4 [14:07:51]GetLastDocTimeStamp 1718891845 [14:07:51]current date 1718892473 [14:07:51]FM_GetShiftState [14:07:51]SAM_PROTO_GetShiftState [14:07:51]wFMCommunicate request_size=4 [14:07:51]MH_SAM_APDU [14:07:51]CAPDU: 80 13 01 00 [14:07:51]Write to MH i2c: E2 08 00 48 0C 80 13 01 00 00 00 00 00 D1 [14:07:51]Write i2c OK [14:07:51]MH_I2C_Read... [14:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:51]Read from MH i2c: E2 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: E2 0E 00 [14:07:51]MH_I2C_Read... [14:07:51]Read from MH i2c: E2 0E 00 48 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 E9 [14:07:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:07:51]wFMCommunicate OK [14:07:51]SAM_PROTO_GetShiftState done [14:07:51]FM_GetShiftState done [14:07:51]opened in 1718843069 [14:07:51]opened+sec_in_day 1718929469 [14:07:51]quantity*price = 14000 [14:07:51]sum+1 = 14001 [14:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 40 20.06.2024 14:07 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34430 ФПД: 236862881949481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140753&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34430&fm=236862881949481&tin=02508201610067®Number=0000000000092786&sum=14000 0 [14:07:52]StoreToDocumentArchive [14:07:52]shift 325 fd 34430 [14:07:52]save to /storage/0325/doc_00034430 [14:07:52]save last doc name /storage/0325/doc_00034430 to /storage/kkm_last_doc_name [14:07:52]save OK [14:07:52]Clear old archive folders... [14:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=268 [14:07:52]tlvbuf is 00232410 [14:07:52]SAM_PROTO_ClearQueue [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 09 00 00 [14:07:52]Write to MH i2c: E2 08 00 55 0C 80 09 00 00 00 00 00 00 D3 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_ClearQueue done [14:07:52]KKMCreateOFDPacket [14:07:52]OFDProtocolAddRootSTLVToBuf [14:07:52]FM_MakeSignedData [14:07:52]FM_MakeSignedData [14:07:52]SAM_PROTO_SignData [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 01 02 [14:07:52]Write to MH i2c: E2 08 00 56 0C 80 0D 01 02 00 00 00 00 DB [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=255 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 28 00 00 00 F4 03 04 00 B9 37 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [14:07:52]Write to MH i2c: E2 02 01 57 0C 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 28 00 00 00 F4 03 04 00 B9 37 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 57 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=27 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 02 02 16 35 30 39 35 10 04 04 00 7E 86 00 00 35 04 06 00 D7 6C EF F0 67 29 [14:07:52]Write to MH i2c: E2 1E 00 58 0C 80 0D 02 02 16 00 35 30 39 35 10 04 04 00 7E 86 00 00 35 04 06 00 D7 6C EF F0 67 29 00 00 EA [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [14:07:52]RAPDU: 90 00 [14:07:52]wFMCommunicate OK [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 0D 03 02 [14:07:52]Write to MH i2c: E2 08 00 59 0C 80 0D 03 02 00 00 00 00 E0 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0B 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 0B 00 59 0C 00 6F 2D 99 D4 EF AD 8A 07 90 00 17 [14:07:52]RAPDU: 6F 2D 99 D4 EF AD 8A 07 90 00 [14:07:52]wFMCommunicate OK [14:07:52]SAM_PROTO_SignData done [14:07:52]FM_MakeSignedData done [14:07:52]CreateOFDProtocolMessage [14:07:52]wFMCommunicate request_size=4 [14:07:52]MH_SAM_APDU [14:07:52]CAPDU: 80 11 00 00 [14:07:52]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:52]Read from MH i2c: E2 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 17 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 35 [14:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:07:52]wFMCommunicate OK [14:07:52]CreateOFDProtocolMessage done [14:07:52]OFDSenderStorePacket 34430 [14:07:52]StoreOFDPacket docnum=34430 [14:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 20 01 00 00 EF AC 18 01 31 10 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 28 00 00 00 F4 03 04 00 B9 37 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7E 86 00 00 35 04 06 00 D7 6C EF F0 67 29 6F 2D 99 D4 EF AD 8A 07 [14:07:52]CheckFolder [14:07:52]dirname=/storage/ofd_packets [14:07:52]CheckFolder done [14:07:52]ProducePacketName [14:07:52]name=ofd_packets/00034430 [14:07:52]NVStorageSaveData ofd_packets/00034430 [14:07:52]File name is /storage/ofd_packets/00034430 [14:07:52]Write 318 bytes [14:07:52]NVStorageSaveData done [14:07:52]OFDSenderStorePacket done [14:07:52]KKMCreateOFDPacket done [14:07:52]NVStorageSaveData kkm_last_timestamp [14:07:52]File name is /storage/kkm_last_timestamp [14:07:52]Write 4 bytes [14:07:52]NVStorageSaveData done [14:07:52]ExternCall_PrintAddStr [14:07:52]wPrintStart [14:07:52]Write to MH i2c: 01 00 00 5B 0C 67 [14:07:52]Write i2c OK [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 07 00 [14:07:52]MH_I2C_Read... [14:07:52]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [14:07:52]RasterBufferAndPrint [14:07:52]line Счет N : (3)184202 [14:07:52]line ИНН: 02508201610067 [14:07:52]line Контрольно-Кассовый Чек [14:07:52]line ПРОДАЖА [14:07:52]line Товар: 48741200 [14:07:52]line Сигареты Winston Silver [14:07:52]line 1.000 * 140.00 [14:07:52]line = 140.00 [14:07:52]line НДС 12% НСП 1% [14:07:52]line > о реализуемом товаре [14:07:52]line ИТОГО: 140.00 [14:07:52]line НСП 1% : 1.24 [14:07:52]line НДС 12% : 14.87 [14:07:52]line Наличными: 140.00 [14:07:52]line Безнал.: 0.00 [14:07:52]line Место: АЗС № 120 "Партнер Нефть" [14:07:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:07:52]line СНО: Общий режим [14:07:52]line Чек 40 20.06.2024 14:07 [14:07:52]line Смена: 325 ФФД: 1.0 [14:07:52]line ЗНМ: 0300000172 [14:07:52]line РНМ: 0000000000092786 [14:07:52]line Версия ККМ: 001 [14:07:52]line ФМ: 0000000000875095 [14:07:52]line ФД: 34430 [14:07:52]line ФПД: 236862881949481 [14:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140753&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34430&fm=236862881949481&tin=02508201610067®Number=0000000000092786&sum=14000 [14:07:53]line 0 [14:07:53]OFD Sender: Processing packet 34430 [packets to send 8, broken 7] [14:07:53]ProducePacketName [14:07:53]name=ofd_packets/00034430 [14:07:53]OFD Sender: To server: pG, [14:07:53]CommunicateWithHost lk.salyk.kg:30040 [14:07:53]ConnectInit lk.salyk.kg [14:07:53]written 0, free lines is 4095 [14:07:53]Connected sock=11 [14:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 20 01 00 00 EF AC 18 01 31 10 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 28 00 00 00 F4 03 04 00 B9 37 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7E 86 00 00 35 04 06 00 D7 6C EF F0 67 29 6F 2D 99 D4 EF AD 8A 07 [14:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0E BF 47 00 5A 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 35 30 39 35 10 04 04 00 7E 86 00 00 F4 03 04 00 83 DE 73 66 B6 04 01 00 00 01 4C 35 01 E5 81 9F B1 [14:07:53]CommunicateWithHost err = 0 [14:07:53]CheckOFDResponse [14:07:53]1017 (14) - 77093643461234 [14:07:53]1041 (16) - 0000000000875095 [14:07:53]1040 (4) - 34430 [14:07:53]1012 (4) - 20.06.2024 07:47 [14:07:53]1206 (1) - 0 [14:07:53]OFD Sender: Remove packet 34430 [14:07:53]ProducePacketName [14:07:53]name=ofd_packets/00034430 [14:07:53]NVStorageDeleteData [14:07:53]Write to MH i2c: 01 00 00 83 0C 8F [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 01 0D A4 [14:07:53]RasterBufferAndPrint [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]line [14:07:53]written 0, free lines is 3336 [14:07:53]MH_Cut [14:07:53]Write to MH i2c: D1 01 00 8A 0C 01 68 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 01 00 [14:07:53]MH_I2C_Read... [14:07:53]Read from MH i2c: D1 01 00 8A 0C 00 67 [14:07:53]Write to MH i2c: 01 00 00 8B 0C 97 [14:07:53]Write i2c OK [14:07:53]MH_I2C_Read... [14:07:54]OFD Sender: No OFD packet to send [14:07:54]*** Cut start [14:07:54]*** Partial cut [14:07:54]*** CUTSNS_PIN = 1 [14:07:54]*** CUTSNS_PIN = 0 [14:07:54]*** Brake cut motor [14:07:55]Read from MH i2c: 01 [14:07:55]MH_I2C_Read... [14:07:55]*** Stop cut motor [14:07:55]*** Cut end [14:07:55]Read from MH i2c: 01 07 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [14:07:55]process_action close_receipt done [14:07:55]requested_data is exist [14:07:55]produce_requested_data [14:07:55]requested_item fm.sn is exist - process it [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 11 00 00 [14:07:55]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 17 00 8C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [14:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:07:55]wFMCommunicate OK [14:07:55]requested_item fd.num is exist - process it [14:07:55]SAM_PROTO_GetFieldsCounters [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 00 00 [14:07:55]Write to MH i2c: E2 08 00 8D 0C 80 13 00 00 00 00 00 00 15 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 62 00 8D 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7E 86 00 00 0E 04 04 00 45 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 01 [14:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7E 86 00 00 0E 04 04 00 45 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 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetFieldsCounters done [14:07:55]requested_item shift.num is exist - process it [14:07:55]requested_item shift.opened is exist - process it [14:07:55]req_shift_opened [14:07:55]FM_GetShiftState [14:07:55]SAM_PROTO_GetShiftState [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 01 00 [14:07:55]Write to MH i2c: E2 08 00 8E 0C 80 13 01 00 00 00 00 00 17 [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 8E 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2F [14:07:55]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetShiftState done [14:07:55]FM_GetShiftState done [14:07:55]req_shift_opened done [14:07:55]requested_item shift.open_date is exist - process it [14:07:55]req_shift_open_date [14:07:55]req_shift_open_date done [14:07:55]produce_requested_data done [14:07:55]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34430,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:07:55]process_action_free close_receipt [14:07:55]json_value_free [14:07:55]json_value_free done [14:07:55]process_json_proto returns [14:07:55]Send response to host [14:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34430,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:07:55]free response buf [14:07:55]execute_script done [14:07:55]execute_script returns [14:07:55]free content buf [14:07:55]Sock 9.Close socket [14:07:55]Sock 9.Thread stoped [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]accept exits with 8 [14:24:14]New connection [14:24:14]New thread 3066654052 created [14:24:14]Thread 3066510692 joined [14:24:14]Waiting for new connection... [14:24:14] Sock 8.Parse request [14:24:14]Sock 8.Check first char [14:24:14]Sock 8.First char is OK [14:24:14]request: POST /json_proto HTTP/1.0 [14:24:14]Method: POST [14:24:14]URL: /json_proto [14:24:14]Method is POST - this is cgi request [14:24:14]url: /json_proto [14:24:14]query_string will be loaded in cgi processing [14:24:14]execute_cgi json_proto POST (null) [14:24:14]execute_cgi path=json_proto method=POST [14:24:14]POST find Content-Length [14:24:14]Host: 172.17.38.134:8080 [14:24:14]Content-Length: 628 [14:24:14]Content-Type: application/json [14:24:14] [14:24:14]POST finish read [14:24:14]Found Content-Length = 628 [14:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184203", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:14]execute_script... [14:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184203", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:14]POST & json_proto [14:24:14]process_json_proto [14:24:14]json parsed OK: [14:24:14]protocol is kg_v1.0 [14:24:14]action value=close_receipt [14:24:14]process_action close_receipt [14:24:14]cmd_close_receipt [14:24:14]MH_GetDate [14:24:14]Write to MH i2c: F0 00 00 8F 0C 8A [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 09 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: F0 09 00 8F 0C 00 90 3B 74 66 13 9C 7C 64 C7 [14:24:14]GetLastDocTimeStamp 1718892473 [14:24:14]current date 1718893456 [14:24:14]FM_GetShiftState [14:24:14]SAM_PROTO_GetShiftState [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 01 00 [14:24:14]Write to MH i2c: E2 08 00 90 0C 80 13 01 00 00 00 00 00 19 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 90 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 31 [14:24:14]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetShiftState done [14:24:14]FM_GetShiftState done [14:24:14]opened in 1718843069 [14:24:14]opened+sec_in_day 1718929469 [14:24:14]quantity*price = 13000 [14:24:14]sum+1 = 13001 [14:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 20.06.2024 14:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34431 ФПД: 75611007663446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142416&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34431&fm=75611007663446&tin=02508201610067®Number=0000000000092786&sum=13000 0 [14:24:15]StoreToDocumentArchive [14:24:15]shift 325 fd 34431 [14:24:15]save to /storage/0325/doc_00034431 [14:24:15]save last doc name /storage/0325/doc_00034431 to /storage/kkm_last_doc_name [14:24:15]save OK [14:24:15]Clear old archive folders... [14:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:24:15]tlvbuf is 00232460 [14:24:15]SAM_PROTO_ClearQueue [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 09 00 00 [14:24:15]Write to MH i2c: E2 08 00 9D 0C 80 09 00 00 00 00 00 00 1B [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 9D 0C 00 90 00 1D [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]SAM_PROTO_ClearQueue done [14:24:15]KKMCreateOFDPacket [14:24:15]OFDProtocolAddRootSTLVToBuf [14:24:15]FM_MakeSignedData [14:24:15]FM_MakeSignedData [14:24:15]SAM_PROTO_SignData [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 01 02 [14:24:15]Write to MH i2c: E2 08 00 9E 0C 80 0D 01 02 00 00 00 00 23 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]wFMCommunicate request_size=255 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 90 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 [14:24:15]Write to MH i2c: E2 02 01 9F 0C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 90 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 00 00 59 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]wFMCommunicate request_size=35 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7F 86 00 00 35 04 06 00 44 C4 8F 40 BD 56 [14:24:15]Write to MH i2c: E2 26 00 A0 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7F 86 00 00 35 04 06 00 44 C4 8F 40 BD 56 00 00 0A [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [14:24:15]RAPDU: 90 00 [14:24:15]wFMCommunicate OK [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 0D 03 02 [14:24:15]Write to MH i2c: E2 08 00 A1 0C 80 0D 03 02 00 00 00 00 28 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 0B 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 0B 00 A1 0C 00 1D 5C 57 B4 C3 69 CC 50 90 00 F5 [14:24:15]RAPDU: 1D 5C 57 B4 C3 69 CC 50 90 00 [14:24:15]wFMCommunicate OK [14:24:15]SAM_PROTO_SignData done [14:24:15]FM_MakeSignedData done [14:24:15]CreateOFDProtocolMessage [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 11 00 00 [14:24:15]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 17 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 17 00 A2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7D [14:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:24:15]wFMCommunicate OK [14:24:15]CreateOFDProtocolMessage done [14:24:15]OFDSenderStorePacket 34431 [14:24:15]StoreOFDPacket docnum=34431 [14:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 83 92 20 01 62 F1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 90 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7F 86 00 00 35 04 06 00 44 C4 8F 40 BD 56 1D 5C 57 B4 C3 69 CC 50 [14:24:15]CheckFolder [14:24:15]dirname=/storage/ofd_packets [14:24:15]CheckFolder done [14:24:15]ProducePacketName [14:24:15]name=ofd_packets/00034431 [14:24:15]NVStorageSaveData ofd_packets/00034431 [14:24:15]File name is /storage/ofd_packets/00034431 [14:24:15]Write 326 bytes [14:24:15]NVStorageSaveData done [14:24:15]OFDSenderStorePacket done [14:24:15]KKMCreateOFDPacket done [14:24:15]NVStorageSaveData kkm_last_timestamp [14:24:15]File name is /storage/kkm_last_timestamp [14:24:15]Write 4 bytes [14:24:15]NVStorageSaveData done [14:24:15]ExternCall_PrintAddStr [14:24:15]wPrintStart [14:24:15]Write to MH i2c: 01 00 00 A3 0C AF [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: 01 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: 01 07 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 FF 0F C4 [14:24:15]RasterBufferAndPrint [14:24:15]line Счет N : (3)184203 [14:24:15]line ИНН: 02508201610067 [14:24:15]line Контрольно-Кассовый Чек [14:24:15]line ПРОДАЖА [14:24:15]line Товар: 2000036230011 [14:24:15]line Кофе Латте XL(GABB TRADE) [14:24:15]line 1.000 * 130.00 [14:24:15]line = 130.00 [14:24:15]line НДС 12% НСП 1% [14:24:15]line > о реализуемом товаре [14:24:15]line ИТОГО: 130.00 [14:24:15]line НСП 1% : 1.15 [14:24:15]line НДС 12% : 13.80 [14:24:15]line Наличными: 130.00 [14:24:15]line Безнал.: 0.00 [14:24:15]line Место: АЗС № 120 "Партнер Нефть" [14:24:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:24:15]line СНО: Общий режим [14:24:15]line Чек 41 20.06.2024 14:24 [14:24:15]line Смена: 325 ФФД: 1.0 [14:24:16]line ЗНМ: 0300000172 [14:24:16]line РНМ: 0000000000092786 [14:24:16]line Версия ККМ: 001 [14:24:16]line ФМ: 0000000000875095 [14:24:16]line ФД: 34431 [14:24:16]line ФПД: 75611007663446 [14:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142416&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34431&fm=75611007663446&tin=02508201610067®Number=0000000000092786&sum=13000 [14:24:16]line 0 [14:24:16]OFD Sender: Processing packet 34431 [packets to send 8, broken 7] [14:24:16]ProducePacketName [14:24:16]name=ofd_packets/00034431 [14:24:16]OFD Sender: To server: pG, [14:24:16]CommunicateWithHost lk.salyk.kg:30040 [14:24:16]ConnectInit lk.salyk.kg [14:24:16]written 0, free lines is 4095 [14:24:16]Connected sock=10 [14:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 83 92 20 01 62 F1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 90 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7F 86 00 00 35 04 06 00 44 C4 8F 40 BD 56 1D 5C 57 B4 C3 69 CC 50 [14:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 74 2E 47 00 FB 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 7F 86 00 00 F4 03 04 00 59 E2 73 66 B6 04 01 00 00 C8 2E 0C C9 79 B4 E6 95 [14:24:16]CommunicateWithHost err = 0 [14:24:16]CheckOFDResponse [14:24:16]1017 (14) - 77093643461234 [14:24:16]1041 (16) - 0000000000875095 [14:24:16]1040 (4) - 34431 [14:24:16]1012 (4) - 20.06.2024 08:03 [14:24:16]1206 (1) - 0 [14:24:16]OFD Sender: Remove packet 34431 [14:24:16]ProducePacketName [14:24:16]name=ofd_packets/00034431 [14:24:16]NVStorageDeleteData [14:24:16]Write to MH i2c: 01 00 00 CB 0C D7 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 07 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 0F 0D FA [14:24:16]RasterBufferAndPrint [14:24:16]line [14:24:16]line [14:24:16]line [14:24:16]line [14:24:16]line [14:24:16]written 0, free lines is 3349 [14:24:16]MH_Cut [14:24:16]Write to MH i2c: D1 01 00 D2 0C 01 B0 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: D1 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: D1 01 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: D1 01 00 D2 0C 00 AF [14:24:16]Write to MH i2c: 01 00 00 D3 0C DF [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:17]OFD Sender: No OFD packet to send [14:24:17]*** Cut start [14:24:17]*** Partial cut [14:24:17]*** CUTSNS_PIN = 1 [14:24:17]*** CUTSNS_PIN = 0 [14:24:17]*** Brake cut motor [14:24:18]Read from MH i2c: 01 [14:24:18]MH_I2C_Read... [14:24:18]*** Stop cut motor [14:24:18]*** Cut end [14:24:18]Read from MH i2c: 01 07 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 07 00 D3 0C 00 00 00 00 00 FF 0F F4 [14:24:18]process_action close_receipt done [14:24:18]requested_data is exist [14:24:18]produce_requested_data [14:24:18]requested_item fm.sn is exist - process it [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 11 00 00 [14:24:18]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 17 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AF [14:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:24:18]wFMCommunicate OK [14:24:18]requested_item fd.num is exist - process it [14:24:18]SAM_PROTO_GetFieldsCounters [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 13 00 00 [14:24:18]Write to MH i2c: E2 08 00 D5 0C 80 13 00 00 00 00 00 00 5D [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 62 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 62 00 D5 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7F 86 00 00 0E 04 04 00 45 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 4D [14:24: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 7F 86 00 00 0E 04 04 00 45 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 [14:24:18]wFMCommunicate OK [14:24:18]SAM_PROTO_GetFieldsCounters done [14:24:18]requested_item shift.num is exist - process it [14:24:18]requested_item shift.opened is exist - process it [14:24:18]req_shift_opened [14:24:18]FM_GetShiftState [14:24:18]SAM_PROTO_GetShiftState [14:24:18]wFMCommunicate request_size=4 [14:24:18]MH_SAM_APDU [14:24:18]CAPDU: 80 13 01 00 [14:24:18]Write to MH i2c: E2 08 00 D6 0C 80 13 01 00 00 00 00 00 5F [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:18]Read from MH i2c: E2 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 0E 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: E2 0E 00 D6 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 77 [14:24:18]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:24:18]wFMCommunicate OK [14:24:18]SAM_PROTO_GetShiftState done [14:24:18]FM_GetShiftState done [14:24:18]req_shift_opened done [14:24:18]requested_item shift.open_date is exist - process it [14:24:18]req_shift_open_date [14:24:18]req_shift_open_date done [14:24:18]produce_requested_data done [14:24:18]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34431,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:24:18]process_action_free close_receipt [14:24:18]json_value_free [14:24:18]json_value_free done [14:24:18]process_json_proto returns [14:24:18]Send response to host [14:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34431,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:24:18]free response buf [14:24:18]execute_script done [14:24:18]execute_script returns [14:24:18]free content buf [14:24:18]Sock 8.Close socket [14:24:18]Sock 8.Thread stoped [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:04]accept exits with 9 [14:25:04]New connection [14:25:04]New thread 3066510692 created [14:25:04]Thread 3066654052 joined [14:25:04]Waiting for new connection... [14:25:04] Sock 9.Parse request [14:25:04]Sock 9.Check first char [14:25:04]Sock 9.First char is OK [14:25:04]request: POST /json_proto HTTP/1.0 [14:25:04]Method: POST [14:25:04]URL: /json_proto [14:25:04]Method is POST - this is cgi request [14:25:04]url: /json_proto [14:25:04]query_string will be loaded in cgi processing [14:25:04]execute_cgi json_proto POST (null) [14:25:04]execute_cgi path=json_proto method=POST [14:25:04]POST find Content-Length [14:25:04]Host: 172.17.38.134:8080 [14:25:04]Content-Length: 639 [14:25:04]Content-Type: application/json [14:25:04] [14:25:04]POST finish read [14:25:04]Found Content-Length = 639 [14:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184204", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:04]execute_script... [14:25: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)184204", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:04]POST & json_proto [14:25:04]process_json_proto [14:25:04]json parsed OK: [14:25:04]protocol is kg_v1.0 [14:25:04]action value=close_receipt [14:25:04]process_action close_receipt [14:25:04]cmd_close_receipt [14:25:04]MH_GetDate [14:25:04]Write to MH i2c: F0 00 00 D7 0C D2 [14:25:04]Write i2c OK [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: F0 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: F0 09 00 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: F0 09 00 D7 0C 00 C2 3B 74 66 13 9C 7C 64 41 [14:25:04]GetLastDocTimeStamp 1718893456 [14:25:04]current date 1718893506 [14:25:04]FM_GetShiftState [14:25:04]SAM_PROTO_GetShiftState [14:25:04]wFMCommunicate request_size=4 [14:25:04]MH_SAM_APDU [14:25:04]CAPDU: 80 13 01 00 [14:25:04]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [14:25:04]Write i2c OK [14:25:04]MH_I2C_Read... [14:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:04]Read from MH i2c: E2 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: E2 0E 00 [14:25:04]MH_I2C_Read... [14:25:04]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 79 [14:25:04]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:25:04]wFMCommunicate OK [14:25:04]SAM_PROTO_GetShiftState done [14:25:04]FM_GetShiftState done [14:25:04]opened in 1718843069 [14:25:04]opened+sec_in_day 1718929469 [14:25:04]quantity*price = 4000 [14:25:04]sum+1 = 4001 [14:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 42 20.06.2024 14:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34432 ФПД: 52186703843526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142506&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34432&fm=52186703843526&tin=02508201610067®Number=0000000000092786&sum=4000 0 [14:25:05]StoreToDocumentArchive [14:25:05]shift 325 fd 34432 [14:25:05]save to /storage/0325/doc_00034432 [14:25:05]save last doc name /storage/0325/doc_00034432 to /storage/kkm_last_doc_name [14:25:05]save OK [14:25:05]Clear old archive folders... [14:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:25:05]tlvbuf is 001CE900 [14:25:05]SAM_PROTO_ClearQueue [14:25:05]wFMCommunicate request_size=4 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 09 00 00 [14:25:05]Write to MH i2c: E2 08 00 E5 0C 80 09 00 00 00 00 00 00 63 [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [14:25:05]RAPDU: 90 00 [14:25:05]wFMCommunicate OK [14:25:05]SAM_PROTO_ClearQueue done [14:25:05]KKMCreateOFDPacket [14:25:05]OFDProtocolAddRootSTLVToBuf [14:25:05]FM_MakeSignedData [14:25:05]FM_MakeSignedData [14:25:05]SAM_PROTO_SignData [14:25:05]wFMCommunicate request_size=4 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 0D 01 02 [14:25:05]Write to MH i2c: E2 08 00 E6 0C 80 0D 01 02 00 00 00 00 6B [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 E6 0C 00 90 00 66 [14:25:05]RAPDU: 90 00 [14:25:05]wFMCommunicate OK [14:25:05]wFMCommunicate request_size=255 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C2 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [14:25:05]Write to MH i2c: E2 02 01 E7 0C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C2 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 EA [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [14:25:05]RAPDU: 90 00 [14:25:05]wFMCommunicate OK [14:25:05]wFMCommunicate request_size=33 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 80 86 00 00 35 04 06 00 2F 76 A9 F1 D0 C6 [14:25:05]Write to MH i2c: E2 24 00 E8 0C 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 80 86 00 00 35 04 06 00 2F 76 A9 F1 D0 C6 00 00 DA [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [14:25:05]RAPDU: 90 00 [14:25:05]wFMCommunicate OK [14:25:05]wFMCommunicate request_size=4 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 0D 03 02 [14:25:05]Write to MH i2c: E2 08 00 E9 0C 80 0D 03 02 00 00 00 00 70 [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 0B 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 0B 00 E9 0C 00 91 22 D0 BB 73 98 92 56 90 00 A2 [14:25:05]RAPDU: 91 22 D0 BB 73 98 92 56 90 00 [14:25:05]wFMCommunicate OK [14:25:05]SAM_PROTO_SignData done [14:25:05]FM_MakeSignedData done [14:25:05]CreateOFDProtocolMessage [14:25:05]wFMCommunicate request_size=4 [14:25:05]MH_SAM_APDU [14:25:05]CAPDU: 80 11 00 00 [14:25:05]Write to MH i2c: E2 08 00 EA 0C 80 11 00 00 00 00 00 00 70 [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:05]Read from MH i2c: E2 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 17 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: E2 17 00 EA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C5 [14:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:25:05]wFMCommunicate OK [14:25:05]CreateOFDProtocolMessage done [14:25:05]OFDSenderStorePacket 34432 [14:25:05]StoreOFDPacket docnum=34432 [14:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 AD 95 1E 01 A3 C7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C2 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 80 86 00 00 35 04 06 00 2F 76 A9 F1 D0 C6 91 22 D0 BB 73 98 92 56 [14:25:05]CheckFolder [14:25:05]dirname=/storage/ofd_packets [14:25:05]CheckFolder done [14:25:05]ProducePacketName [14:25:05]name=ofd_packets/00034432 [14:25:05]NVStorageSaveData ofd_packets/00034432 [14:25:05]File name is /storage/ofd_packets/00034432 [14:25:05]Write 324 bytes [14:25:05]NVStorageSaveData done [14:25:05]OFDSenderStorePacket done [14:25:05]KKMCreateOFDPacket done [14:25:05]NVStorageSaveData kkm_last_timestamp [14:25:05]File name is /storage/kkm_last_timestamp [14:25:05]Write 4 bytes [14:25:05]NVStorageSaveData done [14:25:05]ExternCall_PrintAddStr [14:25:05]wPrintStart [14:25:05]Write to MH i2c: 01 00 00 EB 0C F7 [14:25:05]Write i2c OK [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: 01 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: 01 07 00 [14:25:05]MH_I2C_Read... [14:25:05]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 FF 0F 0C [14:25:05]RasterBufferAndPrint [14:25:05]line Счет N : (3)184204 [14:25:05]line ИНН: 02508201610067 [14:25:05]line Контрольно-Кассовый Чек [14:25:05]line ПРОДАЖА [14:25:05]line Товар: 4700000160044 [14:25:05]line Вода Ыссык Ата 0,5л [14:25:05]line 1.000 * 40.00 [14:25:05]line = 40.00 [14:25:05]line НДС 12% НСП 1% [14:25:05]line > о реализуемом товаре [14:25:05]line ИТОГО: 40.00 [14:25:05]line НСП 1% : 0.35 [14:25:05]line НДС 12% : 4.25 [14:25:05]line Наличными: 40.00 [14:25:05]line Безнал.: 0.00 [14:25:05]line Место: АЗС № 120 "Партнер Нефть" [14:25:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:25:05]line СНО: Общий режим [14:25:05]line Чек 42 20.06.2024 14:25 [14:25:05]line Смена: 325 ФФД: 1.0 [14:25:05]line ЗНМ: 0300000172 [14:25:05]line РНМ: 0000000000092786 [14:25:05]line Версия ККМ: 001 [14:25:05]line ФМ: 0000000000875095 [14:25:05]line ФД: 34432 [14:25:05]line ФПД: 52186703843526 [14:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142506&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34432&fm=52186703843526&tin=02508201610067®Number=0000000000092786&sum=4000 [14:25:06]line 0 [14:25:06]OFD Sender: Processing packet 34432 [packets to send 8, broken 7] [14:25:06]ProducePacketName [14:25:06]name=ofd_packets/00034432 [14:25:06]OFD Sender: To server: pG, [14:25:06]CommunicateWithHost lk.salyk.kg:30040 [14:25:06]ConnectInit lk.salyk.kg [14:25:06]written 0, free lines is 4095 [14:25:06]Connected sock=10 [14:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 AD 95 1E 01 A3 C7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 C2 3B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 80 86 00 00 35 04 06 00 2F 76 A9 F1 D0 C6 91 22 D0 BB 73 98 92 56 [14:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 02 AD 47 00 0E 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 35 30 39 35 10 04 04 00 80 86 00 00 F4 03 04 00 8C E2 73 66 B6 04 01 00 00 2A 3D 99 B2 DD 04 8A B3 [14:25:06]CommunicateWithHost err = 0 [14:25:06]CheckOFDResponse [14:25:06]1017 (14) - 77093643461234 [14:25:06]1041 (16) - 0000000000875095 [14:25:06]1040 (4) - 34432 [14:25:06]1012 (4) - 20.06.2024 08:04 [14:25:06]1206 (1) - 0 [14:25:06]OFD Sender: Remove packet 34432 [14:25:06]ProducePacketName [14:25:06]name=ofd_packets/00034432 [14:25:06]NVStorageDeleteData [14:25:06]Write to MH i2c: 01 00 00 13 0D 20 [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: 01 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: 01 07 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FC 0C 2F [14:25:06]RasterBufferAndPrint [14:25:06]line [14:25:06]line [14:25:06]line [14:25:06]line [14:25:06]line [14:25:06]written 0, free lines is 3333 [14:25:06]MH_Cut [14:25:06]Write to MH i2c: D1 01 00 1A 0D 01 F9 [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: D1 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: D1 01 00 [14:25:06]MH_I2C_Read... [14:25:06]Read from MH i2c: D1 01 00 1A 0D 00 F8 [14:25:06]Write to MH i2c: 01 00 00 1B 0D 28 [14:25:06]Write i2c OK [14:25:06]MH_I2C_Read... [14:25:07]OFD Sender: No OFD packet to send [14:25:07]*** Cut start [14:25:07]*** Partial cut [14:25:07]*** CUTSNS_PIN = 1 [14:25:07]*** CUTSNS_PIN = 0 [14:25:07]*** Brake cut motor [14:25:08]Read from MH i2c: 01 [14:25:08]MH_I2C_Read... [14:25:08]*** Stop cut motor [14:25:08]*** Cut end [14:25:08]Read from MH i2c: 01 07 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [14:25:08]process_action close_receipt done [14:25:08]requested_data is exist [14:25:08]produce_requested_data [14:25:08]requested_item fm.sn is exist - process it [14:25:08]wFMCommunicate request_size=4 [14:25:08]MH_SAM_APDU [14:25:08]CAPDU: 80 11 00 00 [14:25:08]Write to MH i2c: E2 08 00 1C 0D 80 11 00 00 00 00 00 00 A3 [14:25:08]Write i2c OK [14:25:08]MH_I2C_Read... [14:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:08]Read from MH i2c: E2 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 17 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 17 00 1C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F8 [14:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:25:08]wFMCommunicate OK [14:25:08]requested_item fd.num is exist - process it [14:25:08]SAM_PROTO_GetFieldsCounters [14:25:08]wFMCommunicate request_size=4 [14:25:08]MH_SAM_APDU [14:25:08]CAPDU: 80 13 00 00 [14:25:08]Write to MH i2c: E2 08 00 1D 0D 80 13 00 00 00 00 00 00 A6 [14:25:08]Write i2c OK [14:25:08]MH_I2C_Read... [14:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:08]Read from MH i2c: E2 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 62 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 62 00 1D 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 80 86 00 00 0E 04 04 00 45 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 9A [14:25: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 80 86 00 00 0E 04 04 00 45 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 [14:25:08]wFMCommunicate OK [14:25:08]SAM_PROTO_GetFieldsCounters done [14:25:08]requested_item shift.num is exist - process it [14:25:08]requested_item shift.opened is exist - process it [14:25:08]req_shift_opened [14:25:08]FM_GetShiftState [14:25:08]SAM_PROTO_GetShiftState [14:25:08]wFMCommunicate request_size=4 [14:25:08]MH_SAM_APDU [14:25:08]CAPDU: 80 13 01 00 [14:25:08]Write to MH i2c: E2 08 00 1E 0D 80 13 01 00 00 00 00 00 A8 [14:25:08]Write i2c OK [14:25:08]MH_I2C_Read... [14:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:08]Read from MH i2c: E2 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 0E 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 0E 00 1E 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C0 [14:25:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:25:08]wFMCommunicate OK [14:25:08]SAM_PROTO_GetShiftState done [14:25:08]FM_GetShiftState done [14:25:08]req_shift_opened done [14:25:08]requested_item shift.open_date is exist - process it [14:25:08]req_shift_open_date [14:25:08]req_shift_open_date done [14:25:08]produce_requested_data done [14:25:08]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34432,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:25:08]process_action_free close_receipt [14:25:08]json_value_free [14:25:08]json_value_free done [14:25:08]process_json_proto returns [14:25:08]Send response to host [14:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34432,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:25:08]free response buf [14:25:08]execute_script done [14:25:08]execute_script returns [14:25:08]free content buf [14:25:08]Sock 9.Close socket [14:25:08]Sock 9.Thread stoped [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:33]accept exits with 8 [14:29:33]New connection [14:29:33]New thread 3066654052 created [14:29:33]Thread 3066510692 joined [14:29:33]Waiting for new connection... [14:29:33] Sock 8.Parse request [14:29:33]Sock 8.Check first char [14:29:33]Sock 8.First char is OK [14:29:33]request: POST /json_proto HTTP/1.0 [14:29:33]Method: POST [14:29:33]URL: /json_proto [14:29:33]Method is POST - this is cgi request [14:29:33]url: /json_proto [14:29:33]query_string will be loaded in cgi processing [14:29:33]execute_cgi json_proto POST (null) [14:29:33]execute_cgi path=json_proto method=POST [14:29:33]POST find Content-Length [14:29:33]Host: 172.17.38.134:8080 [14:29:33]Content-Length: 637 [14:29:33]Content-Type: application/json [14:29:33] [14:29:33]POST finish read [14:29:33]Found Content-Length = 637 [14:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184205", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:33]execute_script... [14:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184205", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:33]POST & json_proto [14:29:33]process_json_proto [14:29:33]json parsed OK: [14:29:33]protocol is kg_v1.0 [14:29:33]action value=close_receipt [14:29:33]process_action close_receipt [14:29:33]cmd_close_receipt [14:29:33]MH_GetDate [14:29:33]Write to MH i2c: F0 00 00 1F 0D 1B [14:29:33]Write i2c OK [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: F0 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: F0 09 00 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: F0 09 00 1F 0D 00 CF 3C 74 66 13 9C 7C 64 98 [14:29:33]GetLastDocTimeStamp 1718893506 [14:29:33]current date 1718893775 [14:29:33]FM_GetShiftState [14:29:33]SAM_PROTO_GetShiftState [14:29:33]wFMCommunicate request_size=4 [14:29:33]MH_SAM_APDU [14:29:33]CAPDU: 80 13 01 00 [14:29:33]Write to MH i2c: E2 08 00 20 0D 80 13 01 00 00 00 00 00 AA [14:29:33]Write i2c OK [14:29:33]MH_I2C_Read... [14:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:33]Read from MH i2c: E2 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 0E 00 [14:29:33]MH_I2C_Read... [14:29:33]Read from MH i2c: E2 0E 00 20 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C2 [14:29:33]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:29:33]wFMCommunicate OK [14:29:33]SAM_PROTO_GetShiftState done [14:29:33]FM_GetShiftState done [14:29:33]opened in 1718843069 [14:29:33]opened+sec_in_day 1718929469 [14:29:33]quantity*price = 5000 [14:29:33]sum+1 = 5001 [14:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 20.06.2024 14:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34433 ФПД: 13069358047498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142935&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34433&fm=13069358047498&tin=02508201610067®Number=0000000000092786&sum=5000 0 [14:29:34]StoreToDocumentArchive [14:29:34]shift 325 fd 34433 [14:29:34]save to /storage/0325/doc_00034433 [14:29:34]save last doc name /storage/0325/doc_00034433 to /storage/kkm_last_doc_name [14:29:34]save OK [14:29:34]Clear old archive folders... [14:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:29:34]tlvbuf is 00227F00 [14:29:34]SAM_PROTO_ClearQueue [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 09 00 00 [14:29:34]Write to MH i2c: E2 08 00 2D 0D 80 09 00 00 00 00 00 00 AC [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_ClearQueue done [14:29:34]KKMCreateOFDPacket [14:29:34]OFDProtocolAddRootSTLVToBuf [14:29:34]FM_MakeSignedData [14:29:34]FM_MakeSignedData [14:29:34]SAM_PROTO_SignData [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 01 02 [14:29:34]Write to MH i2c: E2 08 00 2E 0D 80 0D 01 02 00 00 00 00 B4 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=255 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CF 3C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [14:29:34]Write to MH i2c: E2 02 01 2F 0D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CF 3C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5E [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=31 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 81 86 00 00 35 04 06 00 0B E2 F2 71 A1 0A [14:29:34]Write to MH i2c: E2 22 00 30 0D 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 81 86 00 00 35 04 06 00 0B E2 F2 71 A1 0A 00 00 E6 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [14:29:34]RAPDU: 90 00 [14:29:34]wFMCommunicate OK [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 0D 03 02 [14:29:34]Write to MH i2c: E2 08 00 31 0D 80 0D 03 02 00 00 00 00 B9 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0B 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 0B 00 31 0D 00 F8 B2 13 27 FB 52 CD 41 90 00 F9 [14:29:34]RAPDU: F8 B2 13 27 FB 52 CD 41 90 00 [14:29:34]wFMCommunicate OK [14:29:34]SAM_PROTO_SignData done [14:29:34]FM_MakeSignedData done [14:29:34]CreateOFDProtocolMessage [14:29:34]wFMCommunicate request_size=4 [14:29:34]MH_SAM_APDU [14:29:34]CAPDU: 80 11 00 00 [14:29:34]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:34]Read from MH i2c: E2 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0E [14:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:29:34]wFMCommunicate OK [14:29:34]CreateOFDProtocolMessage done [14:29:34]OFDSenderStorePacket 34433 [14:29:34]StoreOFDPacket docnum=34433 [14:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 4B 74 1C 01 99 0E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CF 3C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 81 86 00 00 35 04 06 00 0B E2 F2 71 A1 0A F8 B2 13 27 FB 52 CD 41 [14:29:34]CheckFolder [14:29:34]dirname=/storage/ofd_packets [14:29:34]CheckFolder done [14:29:34]ProducePacketName [14:29:34]name=ofd_packets/00034433 [14:29:34]NVStorageSaveData ofd_packets/00034433 [14:29:34]File name is /storage/ofd_packets/00034433 [14:29:34]Write 322 bytes [14:29:34]NVStorageSaveData done [14:29:34]OFDSenderStorePacket done [14:29:34]KKMCreateOFDPacket done [14:29:34]NVStorageSaveData kkm_last_timestamp [14:29:34]File name is /storage/kkm_last_timestamp [14:29:34]Write 4 bytes [14:29:34]NVStorageSaveData done [14:29:34]ExternCall_PrintAddStr [14:29:34]wPrintStart [14:29:34]Write to MH i2c: 01 00 00 33 0D 40 [14:29:34]Write i2c OK [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 [14:29:34]MH_I2C_Read... [14:29:34]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 FF 0F 55 [14:29:34]RasterBufferAndPrint [14:29:34]line Счет N : (3)184205 [14:29:34]line ИНН: 02508201610067 [14:29:34]line Контрольно-Кассовый Чек [14:29:34]line ПРОДАЖА [14:29:34]line Товар: 4700000160051 [14:29:34]line Вода Ыссык Ата 1л [14:29:34]line 1.000 * 50.00 [14:29:34]line = 50.00 [14:29:34]line НДС 12% НСП 1% [14:29:34]line > о реализуемом товаре [14:29:34]line ИТОГО: 50.00 [14:29:34]line НСП 1% : 0.44 [14:29:34]line НДС 12% : 5.31 [14:29:34]line Наличными: 50.00 [14:29:34]line Безнал.: 0.00 [14:29:34]line Место: АЗС № 120 "Партнер Нефть" [14:29:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:29:34]line СНО: Общий режим [14:29:34]line Чек 43 20.06.2024 14:29 [14:29:34]line Смена: 325 ФФД: 1.0 [14:29:34]line ЗНМ: 0300000172 [14:29:34]line РНМ: 0000000000092786 [14:29:34]line Версия ККМ: 001 [14:29:34]line ФМ: 0000000000875095 [14:29:34]line ФД: 34433 [14:29:34]line ФПД: 13069358047498 [14:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142935&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34433&fm=13069358047498&tin=02508201610067®Number=0000000000092786&sum=5000 [14:29:35]line 0 [14:29:35]OFD Sender: Processing packet 34433 [packets to send 8, broken 7] [14:29:35]ProducePacketName [14:29:35]name=ofd_packets/00034433 [14:29:35]OFD Sender: To server: pG, [14:29:35]CommunicateWithHost lk.salyk.kg:30040 [14:29:35]ConnectInit lk.salyk.kg [14:29:35]written 0, free lines is 4095 [14:29:35]Connected sock=10 [14:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 4B 74 1C 01 99 0E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CF 3C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 81 86 00 00 35 04 06 00 0B E2 F2 71 A1 0A F8 B2 13 27 FB 52 CD 41 [14:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0C CA 47 00 18 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 35 30 39 35 10 04 04 00 81 86 00 00 F4 03 04 00 98 E3 73 66 B6 04 01 00 00 EB 23 E2 AB BA 26 8F 31 [14:29:35]CommunicateWithHost err = 0 [14:29:35]CheckOFDResponse [14:29:35]1017 (14) - 77093643461234 [14:29:35]1041 (16) - 0000000000875095 [14:29:35]1040 (4) - 34433 [14:29:35]1012 (4) - 20.06.2024 08:08 [14:29:35]1206 (1) - 0 [14:29:35]OFD Sender: Remove packet 34433 [14:29:35]ProducePacketName [14:29:35]name=ofd_packets/00034433 [14:29:35]NVStorageDeleteData [14:29:35]Write to MH i2c: 01 00 00 5B 0D 68 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 07 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 FD 0C 78 [14:29:35]RasterBufferAndPrint [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]line [14:29:35]written 0, free lines is 3331 [14:29:35]MH_Cut [14:29:35]Write to MH i2c: D1 01 00 62 0D 01 41 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 01 00 [14:29:35]MH_I2C_Read... [14:29:35]Read from MH i2c: D1 01 00 62 0D 00 40 [14:29:35]Write to MH i2c: 01 00 00 63 0D 70 [14:29:35]Write i2c OK [14:29:35]MH_I2C_Read... [14:29:36]OFD Sender: No OFD packet to send [14:29:36]*** Cut start [14:29:36]*** Partial cut [14:29:36]*** CUTSNS_PIN = 1 [14:29:36]*** CUTSNS_PIN = 0 [14:29:36]*** Brake cut motor [14:29:37]Read from MH i2c: 01 [14:29:37]MH_I2C_Read... [14:29:37]*** Stop cut motor [14:29:37]*** Cut end [14:29:37]Read from MH i2c: 01 07 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [14:29:37]process_action close_receipt done [14:29:37]requested_data is exist [14:29:37]produce_requested_data [14:29:37]requested_item fm.sn is exist - process it [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 11 00 00 [14:29:37]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 17 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 40 [14:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:29:37]wFMCommunicate OK [14:29:37]requested_item fd.num is exist - process it [14:29:37]SAM_PROTO_GetFieldsCounters [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 13 00 00 [14:29:37]Write to MH i2c: E2 08 00 65 0D 80 13 00 00 00 00 00 00 EE [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 62 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 62 00 65 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 81 86 00 00 0E 04 04 00 45 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 E6 [14:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 81 86 00 00 0E 04 04 00 45 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 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_GetFieldsCounters done [14:29:37]requested_item shift.num is exist - process it [14:29:37]requested_item shift.opened is exist - process it [14:29:37]req_shift_opened [14:29:37]FM_GetShiftState [14:29:37]SAM_PROTO_GetShiftState [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 13 01 00 [14:29:37]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 08 [14:29:37]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_GetShiftState done [14:29:37]FM_GetShiftState done [14:29:37]req_shift_opened done [14:29:37]requested_item shift.open_date is exist - process it [14:29:37]req_shift_open_date [14:29:37]req_shift_open_date done [14:29:37]produce_requested_data done [14:29:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34433,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:29:37]process_action_free close_receipt [14:29:37]json_value_free [14:29:37]json_value_free done [14:29:37]process_json_proto returns [14:29:37]Send response to host [14:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34433,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:29:37]free response buf [14:29:37]execute_script done [14:29:37]execute_script returns [14:29:37]free content buf [14:29:37]Sock 8.Close socket [14:29:37]Sock 8.Thread stoped [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:53]accept exits with 9 [14:39:53]New connection [14:39:53]New thread 3066510692 created [14:39:53]Thread 3066654052 joined [14:39:53]Waiting for new connection... [14:39:53] Sock 9.Parse request [14:39:53]Sock 9.Check first char [14:39:53]Sock 9.First char is OK [14:39:53]request: POST /json_proto HTTP/1.0 [14:39:53]Method: POST [14:39:53]URL: /json_proto [14:39:53]Method is POST - this is cgi request [14:39:53]url: /json_proto [14:39:53]query_string will be loaded in cgi processing [14:39:53]execute_cgi json_proto POST (null) [14:39:53]execute_cgi path=json_proto method=POST [14:39:53]POST find Content-Length [14:39:53]Host: 172.17.38.134:8080 [14:39:53]Content-Length: 957 [14:39:53]Content-Type: application/json [14:39:53] [14:39:53]POST finish read [14:39:53]Found Content-Length = 957 [14:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184206", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:53]execute_script... [14:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184206", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:53]POST & json_proto [14:39:53]process_json_proto [14:39:53]json parsed OK: [14:39:53]protocol is kg_v1.0 [14:39:53]action value=close_receipt [14:39:53]process_action close_receipt [14:39:53]cmd_close_receipt [14:39:53]MH_GetDate [14:39:53]Write to MH i2c: F0 00 00 67 0D 63 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: F0 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: F0 09 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: F0 09 00 67 0D 00 3B 3F 74 66 13 9C 7C 64 4F [14:39:53]GetLastDocTimeStamp 1718893775 [14:39:53]current date 1718894395 [14:39:53]FM_GetShiftState [14:39:53]SAM_PROTO_GetShiftState [14:39:53]wFMCommunicate request_size=4 [14:39:53]MH_SAM_APDU [14:39:53]CAPDU: 80 13 01 00 [14:39:53]Write to MH i2c: E2 08 00 68 0D 80 13 01 00 00 00 00 00 F2 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:53]Read from MH i2c: E2 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 0E 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: E2 0E 00 68 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 0A [14:39:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:39:53]wFMCommunicate OK [14:39:53]SAM_PROTO_GetShiftState done [14:39:53]FM_GetShiftState done [14:39:53]opened in 1718843069 [14:39:53]opened+sec_in_day 1718929469 [14:39:53]quantity*price = 20500 [14:39:53]sum+1 = 20501 [14:39:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328404 Вода ASU пит н.газ мята ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.38 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 44 20.06.2024 14:39 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34434 ФПД: 98254337743570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143955&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34434&fm=98254337743570&tin=02508201610067®Number=0000000000092786&sum=27000 0 [14:39:54]StoreToDocumentArchive [14:39:54]shift 325 fd 34434 [14:39:54]save to /storage/0325/doc_00034434 [14:39:54]save last doc name /storage/0325/doc_00034434 to /storage/kkm_last_doc_name [14:39:54]save OK [14:39:54]Clear old archive folders... [14:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=401 [14:39:54]tlvbuf is 00222630 [14:39:54]SAM_PROTO_ClearQueue [14:39:54]wFMCommunicate request_size=4 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 09 00 00 [14:39:54]Write to MH i2c: E2 08 00 75 0D 80 09 00 00 00 00 00 00 F4 [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [14:39:54]RAPDU: 90 00 [14:39:54]wFMCommunicate OK [14:39:54]SAM_PROTO_ClearQueue done [14:39:54]KKMCreateOFDPacket [14:39:54]OFDProtocolAddRootSTLVToBuf [14:39:54]FM_MakeSignedData [14:39:54]FM_MakeSignedData [14:39:54]SAM_PROTO_SignData [14:39:54]wFMCommunicate request_size=4 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 0D 01 02 [14:39:54]Write to MH i2c: E2 08 00 76 0D 80 0D 01 02 00 00 00 00 FC [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:54]Read from MH i2c: E2 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 [14:39:54]MH_I2C_Read... [14:39:54]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [14:39:54]RAPDU: 90 00 [14:39:54]wFMCommunicate OK [14:39:54]wFMCommunicate request_size=255 [14:39:54]MH_SAM_APDU [14:39:54]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 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 BC D1 8F D1 82 D0 B0 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 [14:39:54]Write to MH i2c: E2 02 01 77 0D 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 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 BC D1 8F D1 82 D0 B0 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 00 00 89 [14:39:54]Write i2c OK [14:39:54]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 03 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [14:39:55]RAPDU: 90 00 [14:39:55]wFMCommunicate OK [14:39:55]wFMCommunicate request_size=160 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B 3F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 82 86 00 00 35 04 06 00 59 5C 9E E6 1A D2 [14:39:55]Write to MH i2c: E2 A3 00 78 0D 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B 3F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 82 86 00 00 35 04 06 00 59 5C 9E E6 1A D2 00 00 7B [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 03 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [14:39:55]RAPDU: 90 00 [14:39:55]wFMCommunicate OK [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 0D 03 02 [14:39:55]Write to MH i2c: E2 08 00 79 0D 80 0D 03 02 00 00 00 00 01 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0B 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0B 00 79 0D 00 55 B3 91 7A F7 EA 59 2E 90 00 7D [14:39:55]RAPDU: 55 B3 91 7A F7 EA 59 2E 90 00 [14:39:55]wFMCommunicate OK [14:39:55]SAM_PROTO_SignData done [14:39:55]FM_MakeSignedData done [14:39:55]CreateOFDProtocolMessage [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 11 00 00 [14:39:55]Write to MH i2c: E2 08 00 7A 0D 80 11 00 00 00 00 00 00 01 [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 7A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 56 [14:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:39:55]wFMCommunicate OK [14:39:55]CreateOFDProtocolMessage done [14:39:55]OFDSenderStorePacket 34434 [14:39:55]StoreOFDPacket docnum=34434 [14:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 4A 49 9D 01 EB 15 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 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 BC D1 8F D1 82 D0 B0 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B 3F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 82 86 00 00 35 04 06 00 59 5C 9E E6 1A D2 55 B3 91 7A F7 EA 59 2E [14:39:55]CheckFolder [14:39:55]dirname=/storage/ofd_packets [14:39:55]CheckFolder done [14:39:55]ProducePacketName [14:39:55]name=ofd_packets/00034434 [14:39:55]NVStorageSaveData ofd_packets/00034434 [14:39:55]File name is /storage/ofd_packets/00034434 [14:39:55]Write 451 bytes [14:39:55]NVStorageSaveData done [14:39:55]OFDSenderStorePacket done [14:39:55]KKMCreateOFDPacket done [14:39:55]NVStorageSaveData kkm_last_timestamp [14:39:55]File name is /storage/kkm_last_timestamp [14:39:55]Write 4 bytes [14:39:55]NVStorageSaveData done [14:39:55]ExternCall_PrintAddStr [14:39:55]wPrintStart [14:39:55]Write to MH i2c: 01 00 00 7B 0D 88 [14:39:55]OFD Sender: Processing packet 34434 [packets to send 8, broken 7] [14:39:55]ProducePacketName [14:39:55]name=ofd_packets/00034434 [14:39:55]OFD Sender: To server: pG, [14:39:55]CommunicateWithHost lk.salyk.kg:30040 [14:39:55]ConnectInit lk.salyk.kg [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [14:39:55]RasterBufferAndPrint [14:39:55]line Счет N : (3)184206 [14:39:55]line ИНН: 02508201610067 [14:39:55]line Контрольно-Кассовый Чек [14:39:55]line ПРОДАЖА [14:39:55]line Товар: 5449000000286 [14:39:55]line Напиток Кока-Кола 2л [14:39:55]line 1.000 * 205.00 [14:39:55]line = 205.00 [14:39:55]line НДС 12% НСП 1% [14:39:55]line > о реализуемом товаре [14:39:55]line Товар: 4870002328404 [14:39:55]line Вода ASU пит н.газ мята ПЭТ 0,5л [14:39:55]line 1.000 * 65.00 [14:39:55]line = 65.00 [14:39:55]line НДС 12% НСП 1% [14:39:55]line > о реализуемом товаре [14:39:55]line ИТОГО: 270.00 [14:39:55]line НСП 1% : 2.38 [14:39:55]line НДС 12% : 28.67 [14:39:55]line Наличными: 270.00 [14:39:55]line Безнал.: 0.00 [14:39:55]line Место: АЗС № 120 "Партнер Нефть" [14:39:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:39:55]line СНО: Общий режим [14:39:55]line Чек 44 20.06.2024 14:39 [14:39:55]line Смена: 325 ФФД: 1.0 [14:39:55]line ЗНМ: 0300000172 [14:39:55]line РНМ: 0000000000092786 [14:39:55]line Версия ККМ: 001 [14:39:55]line ФМ: 0000000000875095 [14:39:55]line ФД: 34434 [14:39:55]line ФПД: 98254337743570 [14:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143955&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34434&fm=98254337743570&tin=02508201610067®Number=0000000000092786&sum=27000 [14:39:55]line 0 [14:39:55]written 0, free lines is 4095 [14:39:55]Connected sock=10 [14:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 4A 49 9D 01 EB 15 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 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 BC D1 8F D1 82 D0 B0 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B 3F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 82 86 00 00 35 04 06 00 59 5C 9E E6 1A D2 55 B3 91 7A F7 EA 59 2E [14:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 84 48 47 00 A8 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 82 86 00 00 F4 03 04 00 05 E6 73 66 B6 04 01 00 00 26 AD 0B FF 8F B6 CA 3E [14:39:56]CommunicateWithHost err = 0 [14:39:56]CheckOFDResponse [14:39:56]1017 (14) - 77093643461234 [14:39:56]1041 (16) - 0000000000875095 [14:39:56]1040 (4) - 34434 [14:39:56]1012 (4) - 20.06.2024 08:19 [14:39:56]1206 (1) - 0 [14:39:56]OFD Sender: Remove packet 34434 [14:39:56]ProducePacketName [14:39:56]name=ofd_packets/00034434 [14:39:56]NVStorageDeleteData [14:39:56]Write to MH i2c: 01 00 00 AA 0D B7 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: 01 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: 01 07 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 A1 0C 6B [14:39:56]RasterBufferAndPrint [14:39:56]line [14:39:56]line [14:39:56]line [14:39:56]line [14:39:56]line [14:39:56]written 0, free lines is 3239 [14:39:56]MH_Cut [14:39:56]Write to MH i2c: D1 01 00 B1 0D 01 90 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: D1 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: D1 01 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: D1 01 00 B1 0D 00 8F [14:39:56]Write to MH i2c: 01 00 00 B2 0D BF [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]OFD Sender: No OFD packet to send [14:39:56]*** Cut start [14:39:56]*** Partial cut [14:39:56]*** CUTSNS_PIN = 1 [14:39:56]*** CUTSNS_PIN = 0 [14:39:57]*** Brake cut motor [14:39:57]Read from MH i2c: 01 [14:39:57]MH_I2C_Read... [14:39:57]*** Stop cut motor [14:39:57]*** Cut end [14:39:57]Read from MH i2c: 01 07 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: 01 07 00 B2 0D 00 00 00 00 00 FF 0F D4 [14:39:57]process_action close_receipt done [14:39:57]requested_data is exist [14:39:57]produce_requested_data [14:39:57]requested_item fm.sn is exist - process it [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 11 00 00 [14:39:57]Write to MH i2c: E2 08 00 B3 0D 80 11 00 00 00 00 00 00 3A [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 17 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 17 00 B3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8F [14:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:39:57]wFMCommunicate OK [14:39:57]requested_item fd.num is exist - process it [14:39:57]SAM_PROTO_GetFieldsCounters [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 13 00 00 [14:39:57]Write to MH i2c: E2 08 00 B4 0D 80 13 00 00 00 00 00 00 3D [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 62 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 62 00 B4 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 82 86 00 00 0E 04 04 00 45 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 39 [14:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 82 86 00 00 0E 04 04 00 45 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 [14:39:57]wFMCommunicate OK [14:39:57]SAM_PROTO_GetFieldsCounters done [14:39:57]requested_item shift.num is exist - process it [14:39:57]requested_item shift.opened is exist - process it [14:39:57]req_shift_opened [14:39:57]FM_GetShiftState [14:39:57]SAM_PROTO_GetShiftState [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 13 01 00 [14:39:57]Write to MH i2c: E2 08 00 B5 0D 80 13 01 00 00 00 00 00 3F [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 B5 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 57 [14:39:57]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:39:57]wFMCommunicate OK [14:39:57]SAM_PROTO_GetShiftState done [14:39:57]FM_GetShiftState done [14:39:57]req_shift_opened done [14:39:57]requested_item shift.open_date is exist - process it [14:39:57]req_shift_open_date [14:39:57]req_shift_open_date done [14:39:57]produce_requested_data done [14:39:57]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34434,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:39:57]process_action_free close_receipt [14:39:57]json_value_free [14:39:57]json_value_free done [14:39:57]process_json_proto returns [14:39:57]Send response to host [14:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34434,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:39:57]free response buf [14:39:57]execute_script done [14:39:57]execute_script returns [14:39:57]free content buf [14:39:57]Sock 9.Close socket [14:39:57]Sock 9.Thread stoped [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44: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:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]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: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:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:33]accept exits with 8 [14:58:33]New connection [14:58:33]New thread 3066654052 created [14:58:33]Thread 3066510692 joined [14:58:33]Waiting for new connection... [14:58:33] Sock 8.Parse request [14:58:33]Sock 8.Check first char [14:58:33]Sock 8.First char is OK [14:58:33]request: POST /json_proto HTTP/1.0 [14:58:33]Method: POST [14:58:33]URL: /json_proto [14:58:33]Method is POST - this is cgi request [14:58:33]url: /json_proto [14:58:33]query_string will be loaded in cgi processing [14:58:33]execute_cgi json_proto POST (null) [14:58:33]execute_cgi path=json_proto method=POST [14:58:33]POST find Content-Length [14:58:33]Host: 172.17.38.134:8080 [14:58:33]Content-Length: 937 [14:58:33]Content-Type: application/json [14:58:33] [14:58:33]POST finish read [14:58:33]Found Content-Length = 937 [14:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184207", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]execute_script... [14:58: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)184207", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]POST & json_proto [14:58:33]process_json_proto [14:58:33]json parsed OK: [14:58:33]protocol is kg_v1.0 [14:58:33]action value=close_receipt [14:58:33]process_action close_receipt [14:58:33]cmd_close_receipt [14:58:33]MH_GetDate [14:58:33]Write to MH i2c: F0 00 00 B6 0D B2 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 09 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: F0 09 00 B6 0D 00 9B 43 74 66 13 9C 7C 64 02 [14:58:33]GetLastDocTimeStamp 1718894395 [14:58:33]current date 1718895515 [14:58:33]FM_GetShiftState [14:58:33]SAM_PROTO_GetShiftState [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 01 00 [14:58:33]Write to MH i2c: E2 08 00 B7 0D 80 13 01 00 00 00 00 00 41 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 B7 0D 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 59 [14:58:33]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_GetShiftState done [14:58:33]FM_GetShiftState done [14:58:33]opened in 1718843069 [14:58:33]opened+sec_in_day 1718929469 [14:58:33]quantity*price = 9500 [14:58:33]sum+1 = 9501 [14:58:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631150682851 Нап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 20.06.2024 14:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34435 ФПД: 101035144554831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145835&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34435&fm=101035144554831&tin=02508201610067®Number=0000000000092786&sum=19000 0 [14:58:34]StoreToDocumentArchive [14:58:34]shift 325 fd 34435 [14:58:34]save to /storage/0325/doc_00034435 [14:58:34]save last doc name /storage/0325/doc_00034435 to /storage/kkm_last_doc_name [14:58:34]save OK [14:58:34]Clear old archive folders... [14:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=419 [14:58:34]tlvbuf is 001CEA00 [14:58:34]SAM_PROTO_ClearQueue [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 09 00 00 [14:58:34]Write to MH i2c: E2 08 00 C4 0D 80 09 00 00 00 00 00 00 43 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 03 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [14:58:34]RAPDU: 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_ClearQueue done [14:58:34]KKMCreateOFDPacket [14:58:34]OFDProtocolAddRootSTLVToBuf [14:58:34]FM_MakeSignedData [14:58:34]FM_MakeSignedData [14:58:34]SAM_PROTO_SignData [14:58:34]wFMCommunicate request_size=4 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 0D 01 02 [14:58:34]Write to MH i2c: E2 08 00 C5 0D 80 0D 01 02 00 00 00 00 4B [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 03 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 03 00 C5 0D 00 90 00 46 [14:58:34]RAPDU: 90 00 [14:58:34]wFMCommunicate OK [14:58:34]wFMCommunicate request_size=255 [14:58:34]MH_SAM_APDU [14:58:34]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 [14:58:34]Write to MH i2c: E2 02 01 C6 0D 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 00 00 20 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 C6 0D 00 90 00 47 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=178 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9B 43 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 83 86 00 00 35 04 06 00 5B E4 13 E6 A9 4F [14:58:35]Write to MH i2c: E2 B5 00 C7 0D 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9B 43 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 83 86 00 00 35 04 06 00 5B E4 13 E6 A9 4F 00 00 B0 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 03 00 C7 0D 00 90 00 48 [14:58:35]RAPDU: 90 00 [14:58:35]wFMCommunicate OK [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 0D 03 02 [14:58:35]Write to MH i2c: E2 08 00 C8 0D 80 0D 03 02 00 00 00 00 50 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0B 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 0B 00 C8 0D 00 78 D0 F0 AE 27 82 4E 08 90 00 36 [14:58:35]RAPDU: 78 D0 F0 AE 27 82 4E 08 90 00 [14:58:35]wFMCommunicate OK [14:58:35]SAM_PROTO_SignData done [14:58:35]FM_MakeSignedData done [14:58:35]CreateOFDProtocolMessage [14:58:35]wFMCommunicate request_size=4 [14:58:35]MH_SAM_APDU [14:58:35]CAPDU: 80 11 00 00 [14:58:35]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:35]Read from MH i2c: E2 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 17 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A5 [14:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:58:35]wFMCommunicate OK [14:58:35]CreateOFDProtocolMessage done [14:58:35]OFDSenderStorePacket 34435 [14:58:35]StoreOFDPacket docnum=34435 [14:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B7 01 00 00 9A 5A AF 01 E9 C2 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9B 43 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 83 86 00 00 35 04 06 00 5B E4 13 E6 A9 4F 78 D0 F0 AE 27 82 4E 08 [14:58:35]CheckFolder [14:58:35]dirname=/storage/ofd_packets [14:58:35]CheckFolder done [14:58:35]ProducePacketName [14:58:35]name=ofd_packets/00034435 [14:58:35]NVStorageSaveData ofd_packets/00034435 [14:58:35]File name is /storage/ofd_packets/00034435 [14:58:35]Write 469 bytes [14:58:35]NVStorageSaveData done [14:58:35]OFDSenderStorePacket done [14:58:35]KKMCreateOFDPacket done [14:58:35]NVStorageSaveData kkm_last_timestamp [14:58:35]File name is /storage/kkm_last_timestamp [14:58:35]Write 4 bytes [14:58:35]NVStorageSaveData done [14:58:35]ExternCall_PrintAddStr [14:58:35]wPrintStart [14:58:35]Write to MH i2c: 01 00 00 CA 0D D7 [14:58:35]OFD Sender: Processing packet 34435 [packets to send 8, broken 7] [14:58:35]ProducePacketName [14:58:35]name=ofd_packets/00034435 [14:58:35]OFD Sender: To server: pG, [14:58:35]CommunicateWithHost lk.salyk.kg:30040 [14:58:35]ConnectInit lk.salyk.kg [14:58:35]Write i2c OK [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 07 00 [14:58:35]MH_I2C_Read... [14:58:35]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [14:58:35]RasterBufferAndPrint [14:58:35]line Счет N : (3)184207 [14:58:35]line ИНН: 02508201610067 [14:58:35]line Контрольно-Кассовый Чек [14:58:35]line ПРОДАЖА [14:58:35]line Товар: 4700000480050 [14:58:35]line Напиток Nitro Energy эн green ж/б 0,45л [14:58:35]line 1.000 * 95.00 [14:58:35]line = 95.00 [14:58:35]line НДС 12% НСП 1% [14:58:35]line > о реализуемом товаре [14:58:35]line Товар: 4631150682851 [14:58:35]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [14:58:35]line 1.000 * 95.00 [14:58:35]line = 95.00 [14:58:35]line НДС 12% НСП 1% [14:58:35]line > о реализуемом товаре [14:58:35]line ИТОГО: 190.00 [14:58:35]line НСП 1% : 1.68 [14:58:35]line НДС 12% : 20.18 [14:58:35]line Наличными: 190.00 [14:58:35]line Безнал.: 0.00 [14:58:35]line Место: АЗС № 120 "Партнер Нефть" [14:58:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:58:35]line СНО: Общий режим [14:58:35]line Чек 45 20.06.2024 14:58 [14:58:35]line Смена: 325 ФФД: 1.0 [14:58:35]line ЗНМ: 0300000172 [14:58:35]line РНМ: 0000000000092786 [14:58:35]line Версия ККМ: 001 [14:58:35]line ФМ: 0000000000875095 [14:58:35]line ФД: 34435 [14:58:35]line ФПД: 101035144554831 [14:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145835&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34435&fm=101035144554831&tin=02508201610067®Number=0000000000092786&sum=19000 [14:58:35]line 0 [14:58:35]written 0, free lines is 4095 [14:58:35]Connected sock=10 [14:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B7 01 00 00 9A 5A AF 01 E9 C2 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9B 43 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 83 86 00 00 35 04 06 00 5B E4 13 E6 A9 4F 78 D0 F0 AE 27 82 4E 08 [14:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 2C DA 47 00 D3 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 35 30 39 35 10 04 04 00 83 86 00 00 F4 03 04 00 65 EA 73 66 B6 04 01 00 00 B9 A9 25 06 B3 EB 9D 3C [14:58:36]CommunicateWithHost err = 0 [14:58:36]CheckOFDResponse [14:58:36]1017 (14) - 77093643461234 [14:58:36]1041 (16) - 0000000000875095 [14:58:36]1040 (4) - 34435 [14:58:36]1012 (4) - 20.06.2024 08:37 [14:58:36]1206 (1) - 0 [14:58:36]OFD Sender: Remove packet 34435 [14:58:36]ProducePacketName [14:58:36]name=ofd_packets/00034435 [14:58:36]NVStorageDeleteData [14:58:36]Write to MH i2c: 01 00 00 FA 0D 07 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 FA 0D 00 00 00 00 00 8D 0C A7 [14:58:36]RasterBufferAndPrint [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]line [14:58:36]written 0, free lines is 3221 [14:58:36]MH_Cut [14:58:36]Write to MH i2c: D1 01 00 01 0E 01 E1 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 01 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: D1 01 00 01 0E 00 E0 [14:58:36]Write to MH i2c: 01 00 00 02 0E 10 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]OFD Sender: No OFD packet to send [14:58:37]*** Cut start [14:58:37]*** Partial cut [14:58:37]*** CUTSNS_PIN = 1 [14:58:37]*** CUTSNS_PIN = 0 [14:58:37]*** Brake cut motor [14:58:37]Read from MH i2c: 01 [14:58:37]MH_I2C_Read... [14:58:37]*** Stop cut motor [14:58:37]*** Cut end [14:58:37]Read from MH i2c: 01 07 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 FF 0F 25 [14:58:37]process_action close_receipt done [14:58:37]requested_data is exist [14:58:37]produce_requested_data [14:58:37]requested_item fm.sn is exist - process it [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 11 00 00 [14:58:37]Write to MH i2c: E2 08 00 03 0E 80 11 00 00 00 00 00 00 8B [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 17 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 17 00 03 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E0 [14:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:58:37]wFMCommunicate OK [14:58:37]requested_item fd.num is exist - process it [14:58:37]SAM_PROTO_GetFieldsCounters [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 13 00 00 [14:58:37]Write to MH i2c: E2 08 00 04 0E 80 13 00 00 00 00 00 00 8E [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 62 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 62 00 04 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 83 86 00 00 0E 04 04 00 45 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 8E [14:58: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 83 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_GetFieldsCounters done [14:58:37]requested_item shift.num is exist - process it [14:58:37]requested_item shift.opened is exist - process it [14:58:37]req_shift_opened [14:58:37]FM_GetShiftState [14:58:37]SAM_PROTO_GetShiftState [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 13 01 00 [14:58:37]Write to MH i2c: E2 08 00 05 0E 80 13 01 00 00 00 00 00 90 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 05 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A8 [14:58:37]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_GetShiftState done [14:58:37]FM_GetShiftState done [14:58:37]req_shift_opened done [14:58:37]requested_item shift.open_date is exist - process it [14:58:37]req_shift_open_date [14:58:37]req_shift_open_date done [14:58:37]produce_requested_data done [14:58:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34435,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [14:58:37]process_action_free close_receipt [14:58:37]json_value_free [14:58:37]json_value_free done [14:58:37]process_json_proto returns [14:58:37]Send response to host [14:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34435,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [14:58:37]free response buf [14:58:37]execute_script done [14:58:37]execute_script returns [14:58:37]free content buf [14:58:37]Sock 8.Close socket [14:58:37]Sock 8.Thread stoped [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]accept exits with 9 [15:19:07]New connection [15:19:07]New thread 3066510692 created [15:19:07]Thread 3066654052 joined [15:19:07]Waiting for new connection... [15:19:07] Sock 9.Parse request [15:19:07]Sock 9.Check first char [15:19:07]Sock 9.First char is OK [15:19:07]request: POST /json_proto HTTP/1.0 [15:19:07]Method: POST [15:19:07]URL: /json_proto [15:19:07]Method is POST - this is cgi request [15:19:07]url: /json_proto [15:19:07]query_string will be loaded in cgi processing [15:19:07]execute_cgi json_proto POST (null) [15:19:07]execute_cgi path=json_proto method=POST [15:19:07]POST find Content-Length [15:19:07]Host: 172.17.38.134:8080 [15:19:07]Content-Length: 682 [15:19:07]Content-Type: application/json [15:19:07] [15:19:07]POST finish read [15:19:07]Found Content-Length = 682 [15:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:19:07]execute_script... [15:19: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)673311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:19:07]POST & json_proto [15:19:07]process_json_proto [15:19:07]json parsed OK: [15:19:07]protocol is kg_v1.0 [15:19:07]action value=close_receipt [15:19:07]process_action close_receipt [15:19:07]cmd_close_receipt [15:19:07]MH_GetDate [15:19:07]Write to MH i2c: F0 00 00 06 0E 03 [15:19:07]Write i2c OK [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 09 00 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: F0 09 00 06 0E 00 6D 48 74 66 13 9C 7C 64 2A [15:19:07]GetLastDocTimeStamp 1718895515 [15:19:07]current date 1718896749 [15:19:07]FM_GetShiftState [15:19:07]SAM_PROTO_GetShiftState [15:19:07]wFMCommunicate request_size=4 [15:19:07]MH_SAM_APDU [15:19:07]CAPDU: 80 13 01 00 [15:19:07]Write to MH i2c: E2 08 00 07 0E 80 13 01 00 00 00 00 00 92 [15:19:07]Write i2c OK [15:19:07]MH_I2C_Read... [15:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:07]Read from MH i2c: E2 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: E2 0E 00 [15:19:07]MH_I2C_Read... [15:19:07]Read from MH i2c: E2 0E 00 07 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 AA [15:19:07]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:19:07]wFMCommunicate OK [15:19:07]SAM_PROTO_GetShiftState done [15:19:07]FM_GetShiftState done [15:19:07]opened in 1718843069 [15:19:07]opened+sec_in_day 1718929469 [15:19:07]quantity*price = 100064 [15:19:07]sum+1 = 100066 [15:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 20.06.2024 15:19 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34436 ФПД: 139881166960357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151909&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34436&fm=139881166960357&tin=02508201610067®Number=0000000000092786&sum=100000 [15:19:08]StoreToDocumentArchive [15:19:08]shift 325 fd 34436 [15:19:08]save to /storage/0325/doc_00034436 [15:19:08]save last doc name /storage/0325/doc_00034436 to /storage/kkm_last_doc_name [15:19:08]save OK [15:19:08]Clear old archive folders... [15:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:08]tlvbuf is 00207780 [15:19:08]SAM_PROTO_ClearQueue [15:19:08]wFMCommunicate request_size=4 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 09 00 00 [15:19:08]Write to MH i2c: E2 08 00 14 0E 80 09 00 00 00 00 00 00 94 [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 14 0E 00 90 00 96 [15:19:08]RAPDU: 90 00 [15:19:08]wFMCommunicate OK [15:19:08]SAM_PROTO_ClearQueue done [15:19:08]KKMCreateOFDPacket [15:19:08]OFDProtocolAddRootSTLVToBuf [15:19:08]FM_MakeSignedData [15:19:08]FM_MakeSignedData [15:19:08]SAM_PROTO_SignData [15:19:08]wFMCommunicate request_size=4 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 0D 01 02 [15:19:08]Write to MH i2c: E2 08 00 15 0E 80 0D 01 02 00 00 00 00 9C [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 15 0E 00 90 00 97 [15:19:08]RAPDU: 90 00 [15:19:08]wFMCommunicate OK [15:19:08]wFMCommunicate request_size=255 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 00 00 00 F4 03 04 00 6D 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 84 86 00 00 35 04 06 00 7F [15:19:08]Write to MH i2c: E2 02 01 16 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 00 00 00 F4 03 04 00 6D 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 84 86 00 00 35 04 06 00 7F 00 00 35 [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 16 0E 00 90 00 98 [15:19:08]RAPDU: 90 00 [15:19:08]wFMCommunicate OK [15:19:08]wFMCommunicate request_size=10 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 0D 02 02 05 38 9F 44 76 E5 [15:19:08]Write to MH i2c: E2 0D 00 17 0E 80 0D 02 02 05 00 38 9F 44 76 E5 00 00 1F [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 03 00 17 0E 00 90 00 99 [15:19:08]RAPDU: 90 00 [15:19:08]wFMCommunicate OK [15:19:08]wFMCommunicate request_size=4 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 0D 03 02 [15:19:08]Write to MH i2c: E2 08 00 18 0E 80 0D 03 02 00 00 00 00 A1 [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 0B 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 0B 00 18 0E 00 7E 25 89 39 6C DF 0A 68 90 00 C4 [15:19:08]RAPDU: 7E 25 89 39 6C DF 0A 68 90 00 [15:19:08]wFMCommunicate OK [15:19:08]SAM_PROTO_SignData done [15:19:08]FM_MakeSignedData done [15:19:08]CreateOFDProtocolMessage [15:19:08]wFMCommunicate request_size=4 [15:19:08]MH_SAM_APDU [15:19:08]CAPDU: 80 11 00 00 [15:19:08]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:08]Read from MH i2c: E2 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 17 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F6 [15:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:19:08]wFMCommunicate OK [15:19:08]CreateOFDProtocolMessage done [15:19:08]OFDSenderStorePacket 34436 [15:19:08]StoreOFDPacket docnum=34436 [15:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 EF 20 07 01 D8 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 00 00 00 F4 03 04 00 6D 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 84 86 00 00 35 04 06 00 7F 38 9F 44 76 E5 7E 25 89 39 6C DF 0A 68 [15:19:08]CheckFolder [15:19:08]dirname=/storage/ofd_packets [15:19:08]CheckFolder done [15:19:08]ProducePacketName [15:19:08]name=ofd_packets/00034436 [15:19:08]NVStorageSaveData ofd_packets/00034436 [15:19:08]File name is /storage/ofd_packets/00034436 [15:19:08]Write 301 bytes [15:19:08]NVStorageSaveData done [15:19:08]OFDSenderStorePacket done [15:19:08]KKMCreateOFDPacket done [15:19:08]NVStorageSaveData kkm_last_timestamp [15:19:08]File name is /storage/kkm_last_timestamp [15:19:08]Write 4 bytes [15:19:08]NVStorageSaveData done [15:19:08]ExternCall_PrintAddStr [15:19:08]wPrintStart [15:19:08]Write to MH i2c: 01 00 00 1A 0E 28 [15:19:08]Write i2c OK [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: 01 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: 01 07 00 [15:19:08]MH_I2C_Read... [15:19:08]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 FF 0F 3D [15:19:08]RasterBufferAndPrint [15:19:08]line Счет N : (1)673311 [15:19:08]line ИНН: 02508201610067 [15:19:08]line Контрольно-Кассовый Чек [15:19:08]line ПРОДАЖА [15:19:08]line ТРК (МРК, ГНК) : 42 [15:19:08]line Товар: 2710124130 [15:19:08]line Аи-92-К-5 [15:19:08]line 15.070 * 66.40 [15:19:08]line = 1000.65 [15:19:08]line НДС 12% НСП 1% [15:19:08]line > о реализуемом товаре [15:19:08]line ОКРУГЛЕНИЕ: -0.65 [15:19:08]line ИТОГО: 1000.00 [15:19:08]line Внесено: 1000.00 [15:19:08]line СДАЧА: 0.00 [15:19:08]line НСП 1% : 8.85 [15:19:08]line НДС 12% : 106.26 [15:19:08]line Наличными: 1000.00 [15:19:08]line Безнал.: 0.00 [15:19:08]line Место: АЗС № 120 "Партнер Нефть" [15:19:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:19:08]line СНО: Общий режим [15:19:08]line Чек 46 20.06.2024 15:19 [15:19:08]line Смена: 325 ФФД: 1.0 [15:19:08]line ЗНМ: 0300000172 [15:19:08]line РНМ: 0000000000092786 [15:19:08]line Версия ККМ: 001 [15:19:08]line ФМ: 0000000000875095 [15:19:08]line ФД: 34436 [15:19:08]line ФПД: 139881166960357 [15:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151909&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34436&fm=139881166960357&tin=02508201610067®Number=0000000000092786&sum=100000 [15:19:09]OFD Sender: Processing packet 34436 [packets to send 8, broken 7] [15:19:09]ProducePacketName [15:19:09]name=ofd_packets/00034436 [15:19:09]OFD Sender: To server: pG, [15:19:09]CommunicateWithHost lk.salyk.kg:30040 [15:19:09]ConnectInit lk.salyk.kg [15:19:09]written 0, free lines is 4095 [15:19:09]Connected sock=10 [15:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 EF 20 07 01 D8 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2E 00 00 00 F4 03 04 00 6D 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 84 86 00 00 35 04 06 00 7F 38 9F 44 76 E5 7E 25 89 39 6C DF 0A 68 [15:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 84 5F 47 00 37 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 35 30 39 35 10 04 04 00 84 86 00 00 F4 03 04 00 36 EF 73 66 B6 04 01 00 00 3F 19 99 0A 65 04 BC 51 [15:19:09]CommunicateWithHost err = 0 [15:19:09]CheckOFDResponse [15:19:09]1017 (14) - 77093643461234 [15:19:09]1041 (16) - 0000000000875095 [15:19:09]1040 (4) - 34436 [15:19:09]1012 (4) - 20.06.2024 08:58 [15:19:09]1206 (1) - 0 [15:19:09]OFD Sender: Remove packet 34436 [15:19:09]ProducePacketName [15:19:09]name=ofd_packets/00034436 [15:19:09]NVStorageDeleteData [15:19:09]Write to MH i2c: 01 00 00 45 0E 53 [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 07 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: 01 07 00 45 0E 00 00 00 00 00 F2 0C 58 [15:19:09]RasterBufferAndPrint [15:19:09]line [15:19:09]line [15:19:09]line [15:19:09]line [15:19:09]line [15:19:09]written 0, free lines is 3320 [15:19:09]MH_Cut [15:19:09]Write to MH i2c: D1 01 00 4C 0E 01 2C [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: D1 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: D1 01 00 [15:19:09]MH_I2C_Read... [15:19:09]Read from MH i2c: D1 01 00 4C 0E 00 2B [15:19:09]Write to MH i2c: 01 00 00 4D 0E 5B [15:19:09]Write i2c OK [15:19:09]MH_I2C_Read... [15:19:10]OFD Sender: No OFD packet to send [15:19:10]*** Cut start [15:19:10]*** Partial cut [15:19:10]*** CUTSNS_PIN = 1 [15:19:10]*** CUTSNS_PIN = 0 [15:19:10]*** Brake cut motor [15:19:10]Read from MH i2c: 01 [15:19:11]MH_I2C_Read... [15:19:11]*** Stop cut motor [15:19:11]*** Cut end [15:19:11]Read from MH i2c: 01 07 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 FF 0F 70 [15:19:11]process_action close_receipt done [15:19:11]requested_data is exist [15:19:11]produce_requested_data [15:19:11]requested_item fm.sn is exist - process it [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 11 00 00 [15:19:11]Write to MH i2c: E2 08 00 4E 0E 80 11 00 00 00 00 00 00 D6 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 17 00 4E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2B [15:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:19:11]wFMCommunicate OK [15:19:11]requested_item fd.num is exist - process it [15:19:11]SAM_PROTO_GetFieldsCounters [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 13 00 00 [15:19:11]Write to MH i2c: E2 08 00 4F 0E 80 13 00 00 00 00 00 00 D9 [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 62 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 62 00 4F 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 84 86 00 00 0E 04 04 00 45 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 DD [15:19: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 84 86 00 00 0E 04 04 00 45 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 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_GetFieldsCounters done [15:19:11]requested_item shift.num is exist - process it [15:19:11]requested_item shift.opened is exist - process it [15:19:11]req_shift_opened [15:19:11]FM_GetShiftState [15:19:11]SAM_PROTO_GetShiftState [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 13 01 00 [15:19:11]Write to MH i2c: E2 08 00 50 0E 80 13 01 00 00 00 00 00 DB [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0E 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0E 00 50 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F3 [15:19:11]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_GetShiftState done [15:19:11]FM_GetShiftState done [15:19:11]req_shift_opened done [15:19:11]requested_item shift.open_date is exist - process it [15:19:11]req_shift_open_date [15:19:11]req_shift_open_date done [15:19:11]produce_requested_data done [15:19:11]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34436,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:19:11]process_action_free close_receipt [15:19:11]json_value_free [15:19:11]json_value_free done [15:19:11]process_json_proto returns [15:19:11]Send response to host [15:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34436,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:19:11]free response buf [15:19:11]execute_script done [15:19:11]execute_script returns [15:19:11]free content buf [15:19:11]Sock 9.Close socket [15:19:11]Sock 9.Thread stoped [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:18]accept exits with 8 [15:20:18]New connection [15:20:18]New thread 3066654052 created [15:20:18]Thread 3066510692 joined [15:20:18]Waiting for new connection... [15:20:18] Sock 8.Parse request [15:20:18]Sock 8.Check first char [15:20:18]Sock 8.First char is OK [15:20:18]request: POST /json_proto HTTP/1.0 [15:20:18]Method: POST [15:20:18]URL: /json_proto [15:20:18]Method is POST - this is cgi request [15:20:18]url: /json_proto [15:20:18]query_string will be loaded in cgi processing [15:20:18]execute_cgi json_proto POST (null) [15:20:18]execute_cgi path=json_proto method=POST [15:20:18]POST find Content-Length [15:20:18]Host: 172.17.38.134:8080 [15:20:18]Content-Length: 801 [15:20:18]Content-Type: application/json [15:20:18] [15:20:18]POST finish read [15:20:18]Found Content-Length = 801 [15:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:18]execute_script... [15:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:18]POST & json_proto [15:20:18]process_json_proto [15:20:18]json parsed OK: [15:20:18]protocol is kg_v1.0 [15:20:18]action value=close_receipt [15:20:18]process_action close_receipt [15:20:18]cmd_close_receipt [15:20:18]MH_GetDate [15:20:18]Write to MH i2c: F0 00 00 51 0E 4E [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: F0 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: F0 09 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: F0 09 00 51 0E 00 B4 48 74 66 13 9C 7C 64 BC [15:20:18]GetLastDocTimeStamp 1718896749 [15:20:18]current date 1718896820 [15:20:18]FM_GetShiftState [15:20:18]SAM_PROTO_GetShiftState [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 13 01 00 [15:20:18]Write to MH i2c: E2 08 00 52 0E 80 13 01 00 00 00 00 00 DD [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 0E 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 0E 00 52 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F5 [15:20:18]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:20:18]wFMCommunicate OK [15:20:18]SAM_PROTO_GetShiftState done [15:20:18]FM_GetShiftState done [15:20:18]opened in 1718843069 [15:20:18]opened+sec_in_day 1718929469 [15:20:18]quantity*price = 66400 [15:20:18]sum+1 = 66401 [15:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 20.06.2024 15:20 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34437 ФПД: 146751917159727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152020&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34437&fm=146751917159727&tin=02508201610067®Number=0000000000092786&sum=66400 [15:20:19]StoreToDocumentArchive [15:20:19]shift 325 fd 34437 [15:20:19]save to /storage/0325/doc_00034437 [15:20:19]save last doc name /storage/0325/doc_00034437 to /storage/kkm_last_doc_name [15:20:19]save OK [15:20:19]Clear old archive folders... [15:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:19]tlvbuf is 00219FA0 [15:20:19]SAM_PROTO_ClearQueue [15:20:19]wFMCommunicate request_size=4 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 09 00 00 [15:20:19]Write to MH i2c: E2 08 00 5F 0E 80 09 00 00 00 00 00 00 DF [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]SAM_PROTO_ClearQueue done [15:20:19]KKMCreateOFDPacket [15:20:19]OFDProtocolAddRootSTLVToBuf [15:20:19]FM_MakeSignedData [15:20:19]FM_MakeSignedData [15:20:19]SAM_PROTO_SignData [15:20:19]wFMCommunicate request_size=4 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 0D 01 02 [15:20:19]Write to MH i2c: E2 08 00 60 0E 80 0D 01 02 00 00 00 00 E7 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:19]Read from MH i2c: E2 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: E2 03 00 60 0E 00 90 00 E2 [15:20:19]RAPDU: 90 00 [15:20:19]wFMCommunicate OK [15:20:19]wFMCommunicate request_size=255 [15:20:19]MH_SAM_APDU [15:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B4 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 85 86 00 00 35 04 06 00 85 [15:20:19]Write to MH i2c: E2 02 01 61 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B4 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 85 86 00 00 35 04 06 00 85 00 00 35 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 03 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 03 00 61 0E 00 90 00 E3 [15:20:20]RAPDU: 90 00 [15:20:20]wFMCommunicate OK [15:20:20]wFMCommunicate request_size=10 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 0D 02 02 05 78 57 E4 75 2F [15:20:20]Write to MH i2c: E2 0D 00 62 0E 80 0D 02 02 05 00 78 57 E4 75 2F 00 00 4B [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 03 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [15:20:20]RAPDU: 90 00 [15:20:20]wFMCommunicate OK [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 0D 03 02 [15:20:20]Write to MH i2c: E2 08 00 63 0E 80 0D 03 02 00 00 00 00 EC [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:20]OFD Sender: No OFD packet to send [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0B 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 0B 00 63 0E 00 EB B1 1B DE 3E 8F F1 FA 90 00 3A [15:20:20]RAPDU: EB B1 1B DE 3E 8F F1 FA 90 00 [15:20:20]wFMCommunicate OK [15:20:20]SAM_PROTO_SignData done [15:20:20]FM_MakeSignedData done [15:20:20]CreateOFDProtocolMessage [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 11 00 00 [15:20:20]Write to MH i2c: E2 08 00 64 0E 80 11 00 00 00 00 00 00 EC [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 17 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 17 00 64 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 41 [15:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:20:20]wFMCommunicate OK [15:20:20]CreateOFDProtocolMessage done [15:20:20]OFDSenderStorePacket 34437 [15:20:20]StoreOFDPacket docnum=34437 [15:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 FA 1D 07 01 C8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B4 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 85 86 00 00 35 04 06 00 85 78 57 E4 75 2F EB B1 1B DE 3E 8F F1 FA [15:20:20]CheckFolder [15:20:20]dirname=/storage/ofd_packets [15:20:20]CheckFolder done [15:20:20]ProducePacketName [15:20:20]name=ofd_packets/00034437 [15:20:20]NVStorageSaveData ofd_packets/00034437 [15:20:20]File name is /storage/ofd_packets/00034437 [15:20:20]Write 301 bytes [15:20:20]NVStorageSaveData done [15:20:20]OFDSenderStorePacket done [15:20:20]KKMCreateOFDPacket done [15:20:20]NVStorageSaveData kkm_last_timestamp [15:20:20]File name is /storage/kkm_last_timestamp [15:20:20]Write 4 bytes [15:20:20]NVStorageSaveData done [15:20:20]ExternCall_PrintAddStr [15:20:20]wPrintStart [15:20:20]Write to MH i2c: 01 00 00 65 0E 73 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 07 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 FF 0F 88 [15:20:20]RasterBufferAndPrint [15:20:20]line Счет N : (1)673312 [15:20:20]line ИНН: 02508201610067 [15:20:20]line Контрольно-Кассовый Чек [15:20:20]line ПРОДАЖА [15:20:20]line ТРК (МРК, ГНК) : 32 [15:20:20]line Товар: 2710124130 [15:20:20]line Аи-92-К-5 [15:20:20]line 10.000 * 66.40 [15:20:20]line = 664.00 [15:20:20]line НДС 12% НСП 1% [15:20:20]line > о реализуемом товаре [15:20:20]line ИТОГО: 664.00 [15:20:20]line НСП 1% : 5.88 [15:20:20]line НДС 12% : 70.51 [15:20:20]line Наличными: 0.00 [15:20:20]line Безнал.: 664.00 [15:20:20]line Место: АЗС № 120 "Партнер Нефть" [15:20:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:20:20]line СНО: Общий режим [15:20:20]line Чек 47 20.06.2024 15:20 [15:20:20]line Смена: 325 ФФД: 1.0 [15:20:20]line ЗНМ: 0300000172 [15:20:20]line РНМ: 0000000000092786 [15:20:20]line Версия ККМ: 001 [15:20:20]line Платежная система: O! деньги [15:20:20]line ФМ: 0000000000875095 [15:20:20]line ФД: 34437 [15:20:20]line ФПД: 146751917159727 [15:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152020&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34437&fm=146751917159727&tin=02508201610067®Number=0000000000092786&sum=66400 [15:20:20]OFD Sender: Processing packet 34437 [packets to send 8, broken 7] [15:20:20]ProducePacketName [15:20:20]name=ofd_packets/00034437 [15:20:20]OFD Sender: To server: pG, [15:20:20]CommunicateWithHost lk.salyk.kg:30040 [15:20:20]ConnectInit lk.salyk.kg [15:20:20]written 0, free lines is 4095 [15:20:20]Connected sock=10 [15:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 FA 1D 07 01 C8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B4 48 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 85 86 00 00 35 04 06 00 85 78 57 E4 75 2F EB B1 1B DE 3E 8F F1 FA [15:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 78 5C 47 00 77 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 35 30 39 35 10 04 04 00 85 86 00 00 F4 03 04 00 7E EF 73 66 B6 04 01 00 00 C3 79 72 56 22 2E 6A AA [15:20:20]CommunicateWithHost err = 0 [15:20:20]CheckOFDResponse [15:20:20]1017 (14) - 77093643461234 [15:20:20]1041 (16) - 0000000000875095 [15:20:20]1040 (4) - 34437 [15:20:20]1012 (4) - 20.06.2024 08:59 [15:20:20]1206 (1) - 0 [15:20:20]OFD Sender: Remove packet 34437 [15:20:20]ProducePacketName [15:20:20]name=ofd_packets/00034437 [15:20:20]NVStorageDeleteData [15:20:21]Write to MH i2c: 01 00 00 8F 0E 9D [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 07 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: 01 07 00 8F 0E 00 00 00 00 00 FF 0C AF [15:20:21]RasterBufferAndPrint [15:20:21]line [15:20:21]line [15:20:21]line [15:20:21]line [15:20:21]line [15:20:21]written 0, free lines is 3333 [15:20:21]MH_Cut [15:20:21]Write to MH i2c: D1 01 00 96 0E 01 76 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: D1 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: D1 01 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: D1 01 00 96 0E 00 75 [15:20:21]Write to MH i2c: 01 00 00 97 0E A5 [15:20:21]Write i2c OK [15:20:21]MH_I2C_Read... [15:20:21]OFD Sender: No OFD packet to send [15:20:21]*** Cut start [15:20:21]*** Partial cut [15:20:21]*** CUTSNS_PIN = 1 [15:20:21]*** CUTSNS_PIN = 0 [15:20:22]*** Brake cut motor [15:20:22]Read from MH i2c: 01 [15:20:22]MH_I2C_Read... [15:20:22]*** Stop cut motor [15:20:22]*** Cut end [15:20:22]Read from MH i2c: 01 07 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: 01 07 00 97 0E 00 00 00 00 00 FF 0F BA [15:20:22]process_action close_receipt done [15:20:22]requested_data is exist [15:20:22]produce_requested_data [15:20:22]requested_item fm.sn is exist - process it [15:20:22]wFMCommunicate request_size=4 [15:20:22]MH_SAM_APDU [15:20:22]CAPDU: 80 11 00 00 [15:20:22]Write to MH i2c: E2 08 00 98 0E 80 11 00 00 00 00 00 00 20 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:22]Read from MH i2c: E2 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 17 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 17 00 98 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 75 [15:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:20:22]wFMCommunicate OK [15:20:22]requested_item fd.num is exist - process it [15:20:22]SAM_PROTO_GetFieldsCounters [15:20:22]wFMCommunicate request_size=4 [15:20:22]MH_SAM_APDU [15:20:22]CAPDU: 80 13 00 00 [15:20:22]Write to MH i2c: E2 08 00 99 0E 80 13 00 00 00 00 00 00 23 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:22]Read from MH i2c: E2 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 62 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 62 00 99 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 85 86 00 00 0E 04 04 00 45 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 2B [15:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 85 86 00 00 0E 04 04 00 45 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 [15:20:22]wFMCommunicate OK [15:20:22]SAM_PROTO_GetFieldsCounters done [15:20:22]requested_item shift.num is exist - process it [15:20:22]requested_item shift.opened is exist - process it [15:20:22]req_shift_opened [15:20:22]FM_GetShiftState [15:20:22]SAM_PROTO_GetShiftState [15:20:22]wFMCommunicate request_size=4 [15:20:22]MH_SAM_APDU [15:20:22]CAPDU: 80 13 01 00 [15:20:22]Write to MH i2c: E2 08 00 9A 0E 80 13 01 00 00 00 00 00 25 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:22]Read from MH i2c: E2 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 0E 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 0E 00 9A 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 3D [15:20:22]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:20:22]wFMCommunicate OK [15:20:22]SAM_PROTO_GetShiftState done [15:20:22]FM_GetShiftState done [15:20:22]req_shift_opened done [15:20:22]requested_item shift.open_date is exist - process it [15:20:22]req_shift_open_date [15:20:22]req_shift_open_date done [15:20:22]produce_requested_data done [15:20:22]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34437,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:20:22]process_action_free close_receipt [15:20:22]json_value_free [15:20:22]json_value_free done [15:20:22]process_json_proto returns [15:20:22]Send response to host [15:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34437,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:20:22]free response buf [15:20:22]execute_script done [15:20:22]execute_script returns [15:20:22]free content buf [15:20:22]Sock 8.Close socket [15:20:22]Sock 8.Thread stoped [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:43]accept exits with 9 [15:24:43]New connection [15:24:43]New thread 3066510692 created [15:24:43]Thread 3066654052 joined [15:24:43]Waiting for new connection... [15:24:43] Sock 9.Parse request [15:24:43]Sock 9.Check first char [15:24:43]Sock 9.First char is OK [15:24:43]request: POST /json_proto HTTP/1.0 [15:24:43]Method: POST [15:24:43]URL: /json_proto [15:24:43]Method is POST - this is cgi request [15:24:43]url: /json_proto [15:24:43]query_string will be loaded in cgi processing [15:24:43]execute_cgi json_proto POST (null) [15:24:43]execute_cgi path=json_proto method=POST [15:24:43]POST find Content-Length [15:24:43]Host: 172.17.38.134:8080 [15:24:43]Content-Length: 622 [15:24:43]Content-Type: application/json [15:24:43] [15:24:43]POST finish read [15:24:43]Found Content-Length = 622 [15:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184208", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:43]execute_script... [15:24:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184208", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:43]POST & json_proto [15:24:43]process_json_proto [15:24:43]json parsed OK: [15:24:43]protocol is kg_v1.0 [15:24:43]action value=close_receipt [15:24:43]process_action close_receipt [15:24:43]cmd_close_receipt [15:24:43]MH_GetDate [15:24:43]Write to MH i2c: F0 00 00 9B 0E 98 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 09 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: F0 09 00 9B 0E 00 BD 49 74 66 13 9C 7C 64 10 [15:24:43]GetLastDocTimeStamp 1718896820 [15:24:43]current date 1718897085 [15:24:43]FM_GetShiftState [15:24:43]SAM_PROTO_GetShiftState [15:24:43]wFMCommunicate request_size=4 [15:24:43]MH_SAM_APDU [15:24:43]CAPDU: 80 13 01 00 [15:24:43]Write to MH i2c: E2 08 00 9C 0E 80 13 01 00 00 00 00 00 27 [15:24:43]Write i2c OK [15:24:43]MH_I2C_Read... [15:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:43]Read from MH i2c: E2 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 0E 00 [15:24:43]MH_I2C_Read... [15:24:43]Read from MH i2c: E2 0E 00 9C 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 3F [15:24:43]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:24:43]wFMCommunicate OK [15:24:43]SAM_PROTO_GetShiftState done [15:24:43]FM_GetShiftState done [15:24:43]opened in 1718843069 [15:24:43]opened+sec_in_day 1718929469 [15:24:43]quantity*price = 15100 [15:24:43]sum+1 = 15101 [15:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 48 20.06.2024 15:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34438 ФПД: 245431410165186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152445&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34438&fm=245431410165186&tin=02508201610067®Number=0000000000092786&sum=15100 0 [15:24:44]StoreToDocumentArchive [15:24:44]shift 325 fd 34438 [15:24:44]save to /storage/0325/doc_00034438 [15:24:44]save last doc name /storage/0325/doc_00034438 to /storage/kkm_last_doc_name [15:24:44]save OK [15:24:44]Clear old archive folders... [15:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:24:44]tlvbuf is 0024F050 [15:24:44]SAM_PROTO_ClearQueue [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 09 00 00 [15:24:44]Write to MH i2c: E2 08 00 A9 0E 80 09 00 00 00 00 00 00 29 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 A9 0E 00 90 00 2B [15:24:44]RAPDU: 90 00 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_ClearQueue done [15:24:44]KKMCreateOFDPacket [15:24:44]OFDProtocolAddRootSTLVToBuf [15:24:44]FM_MakeSignedData [15:24:44]FM_MakeSignedData [15:24:44]SAM_PROTO_SignData [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 0D 01 02 [15:24:44]Write to MH i2c: E2 08 00 AA 0E 80 0D 01 02 00 00 00 00 31 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [15:24:44]RAPDU: 90 00 [15:24:44]wFMCommunicate OK [15:24:44]wFMCommunicate request_size=255 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BD 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [15:24:44]Write to MH i2c: E2 02 01 AB 0E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BD 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 57 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 AB 0E 00 90 00 2D [15:24:44]RAPDU: 90 00 [15:24:44]wFMCommunicate OK [15:24:44]wFMCommunicate request_size=33 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 86 00 00 35 04 06 00 DF 37 F4 05 05 C2 [15:24:44]Write to MH i2c: E2 24 00 AC 0E 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 86 00 00 35 04 06 00 DF 37 F4 05 05 C2 00 00 A7 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 03 00 AC 0E 00 90 00 2E [15:24:44]RAPDU: 90 00 [15:24:44]wFMCommunicate OK [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 0D 03 02 [15:24:44]Write to MH i2c: E2 08 00 AD 0E 80 0D 03 02 00 00 00 00 36 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0B 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 0B 00 AD 0E 00 C1 3D 92 94 E2 7A A1 5E 90 00 B6 [15:24:44]RAPDU: C1 3D 92 94 E2 7A A1 5E 90 00 [15:24:44]wFMCommunicate OK [15:24:44]SAM_PROTO_SignData done [15:24:44]FM_MakeSignedData done [15:24:44]CreateOFDProtocolMessage [15:24:44]wFMCommunicate request_size=4 [15:24:44]MH_SAM_APDU [15:24:44]CAPDU: 80 11 00 00 [15:24:44]Write to MH i2c: E2 08 00 AE 0E 80 11 00 00 00 00 00 00 36 [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:44]Read from MH i2c: E2 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: E2 17 00 AE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8B [15:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:24:44]wFMCommunicate OK [15:24:44]CreateOFDProtocolMessage done [15:24:44]OFDSenderStorePacket 34438 [15:24:44]StoreOFDPacket docnum=34438 [15:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 F8 E2 1E 01 D7 93 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BD 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 86 00 00 35 04 06 00 DF 37 F4 05 05 C2 C1 3D 92 94 E2 7A A1 5E [15:24:44]CheckFolder [15:24:44]dirname=/storage/ofd_packets [15:24:44]CheckFolder done [15:24:44]ProducePacketName [15:24:44]name=ofd_packets/00034438 [15:24:44]NVStorageSaveData ofd_packets/00034438 [15:24:44]File name is /storage/ofd_packets/00034438 [15:24:44]Write 324 bytes [15:24:44]NVStorageSaveData done [15:24:44]OFDSenderStorePacket done [15:24:44]KKMCreateOFDPacket done [15:24:44]NVStorageSaveData kkm_last_timestamp [15:24:44]File name is /storage/kkm_last_timestamp [15:24:44]Write 4 bytes [15:24:44]NVStorageSaveData done [15:24:44]ExternCall_PrintAddStr [15:24:44]wPrintStart [15:24:44]Write to MH i2c: 01 00 00 AF 0E BD [15:24:44]Write i2c OK [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: 01 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: 01 07 00 [15:24:44]MH_I2C_Read... [15:24:44]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 FF 0F D2 [15:24:44]RasterBufferAndPrint [15:24:44]line Счет N : (3)184208 [15:24:44]line ИНН: 02508201610067 [15:24:44]line Контрольно-Кассовый Чек [15:24:44]line ПРОДАЖА [15:24:44]line Товар: 48741958 [15:24:44]line Сигареты Parliament Aqua Blue [15:24:44]line 1.000 * 151.00 [15:24:44]line = 151.00 [15:24:44]line НДС 12% НСП 1% [15:24:44]line > о реализуемом товаре [15:24:44]line ИТОГО: 151.00 [15:24:44]line НСП 1% : 1.34 [15:24:44]line НДС 12% : 16.03 [15:24:44]line Наличными: 151.00 [15:24:44]line Безнал.: 0.00 [15:24:44]line Место: АЗС № 120 "Партнер Нефть" [15:24:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:24:44]line СНО: Общий режим [15:24:44]line Чек 48 20.06.2024 15:24 [15:24:44]line Смена: 325 ФФД: 1.0 [15:24:44]line ЗНМ: 0300000172 [15:24:44]line РНМ: 0000000000092786 [15:24:44]line Версия ККМ: 001 [15:24:44]line ФМ: 0000000000875095 [15:24:44]line ФД: 34438 [15:24:44]line ФПД: 245431410165186 [15:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152445&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34438&fm=245431410165186&tin=02508201610067®Number=0000000000092786&sum=15100 [15:24:45]line 0 [15:24:45]OFD Sender: Processing packet 34438 [packets to send 8, broken 7] [15:24:45]ProducePacketName [15:24:45]name=ofd_packets/00034438 [15:24:45]OFD Sender: To server: pG, [15:24:45]CommunicateWithHost lk.salyk.kg:30040 [15:24:45]ConnectInit lk.salyk.kg [15:24:45]written 0, free lines is 4095 [15:24:45]Connected sock=10 [15:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 F8 E2 1E 01 D7 93 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BD 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 86 00 00 35 04 06 00 DF 37 F4 05 05 C2 C1 3D 92 94 E2 7A A1 5E [15:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 06 24 47 00 C3 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 35 30 39 35 10 04 04 00 86 86 00 00 F4 03 04 00 86 F0 73 66 B6 04 01 00 00 DD 59 DB AD AD 55 FD 26 [15:24:45]CommunicateWithHost err = 0 [15:24:45]CheckOFDResponse [15:24:45]1017 (14) - 77093643461234 [15:24:45]1041 (16) - 0000000000875095 [15:24:45]1040 (4) - 34438 [15:24:45]1012 (4) - 20.06.2024 09:04 [15:24:45]1206 (1) - 0 [15:24:45]OFD Sender: Remove packet 34438 [15:24:45]ProducePacketName [15:24:45]name=ofd_packets/00034438 [15:24:45]NVStorageDeleteData [15:24:45]Write to MH i2c: 01 00 00 D8 0E E6 [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 07 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: 01 07 00 D8 0E 00 00 00 00 00 E1 0C DA [15:24:45]RasterBufferAndPrint [15:24:45]line [15:24:45]line [15:24:45]line [15:24:45]line [15:24:45]line [15:24:45]written 0, free lines is 3303 [15:24:45]MH_Cut [15:24:45]Write to MH i2c: D1 01 00 DF 0E 01 BF [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: D1 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: D1 01 00 [15:24:45]MH_I2C_Read... [15:24:45]Read from MH i2c: D1 01 00 DF 0E 00 BE [15:24:45]Write to MH i2c: 01 00 00 E0 0E EE [15:24:45]Write i2c OK [15:24:45]MH_I2C_Read... [15:24:46]OFD Sender: No OFD packet to send [15:24:46]*** Cut start [15:24:46]*** Partial cut [15:24:46]*** CUTSNS_PIN = 1 [15:24:46]*** CUTSNS_PIN = 0 [15:24:46]*** Brake cut motor [15:24:46]Read from MH i2c: 01 [15:24:46]MH_I2C_Read... [15:24:46]*** Stop cut motor [15:24:46]*** Cut end [15:24:46]Read from MH i2c: 01 07 00 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: 01 07 00 E0 0E 00 00 00 00 00 FF 0F 03 [15:24:46]process_action close_receipt done [15:24:46]requested_data is exist [15:24:46]produce_requested_data [15:24:46]requested_item fm.sn is exist - process it [15:24:46]wFMCommunicate request_size=4 [15:24:46]MH_SAM_APDU [15:24:46]CAPDU: 80 11 00 00 [15:24:46]Write to MH i2c: E2 08 00 E1 0E 80 11 00 00 00 00 00 00 69 [15:24:46]Write i2c OK [15:24:46]MH_I2C_Read... [15:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:46]Read from MH i2c: E2 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: E2 17 00 [15:24:46]MH_I2C_Read... [15:24:46]Read from MH i2c: E2 17 00 E1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 BE [15:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:24:46]wFMCommunicate OK [15:24:46]requested_item fd.num is exist - process it [15:24:46]SAM_PROTO_GetFieldsCounters [15:24:46]wFMCommunicate request_size=4 [15:24:46]MH_SAM_APDU [15:24:46]CAPDU: 80 13 00 00 [15:24:46]Write to MH i2c: E2 08 00 E2 0E 80 13 00 00 00 00 00 00 6C [15:24:46]Write i2c OK [15:24:46]MH_I2C_Read... [15:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:47]Read from MH i2c: E2 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 62 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 62 00 E2 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 86 86 00 00 0E 04 04 00 45 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 78 [15:24: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 86 86 00 00 0E 04 04 00 45 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 [15:24:47]wFMCommunicate OK [15:24:47]SAM_PROTO_GetFieldsCounters done [15:24:47]requested_item shift.num is exist - process it [15:24:47]requested_item shift.opened is exist - process it [15:24:47]req_shift_opened [15:24:47]FM_GetShiftState [15:24:47]SAM_PROTO_GetShiftState [15:24:47]wFMCommunicate request_size=4 [15:24:47]MH_SAM_APDU [15:24:47]CAPDU: 80 13 01 00 [15:24:47]Write to MH i2c: E2 08 00 E3 0E 80 13 01 00 00 00 00 00 6E [15:24:47]Write i2c OK [15:24:47]MH_I2C_Read... [15:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:47]Read from MH i2c: E2 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 0E 00 [15:24:47]MH_I2C_Read... [15:24:47]Read from MH i2c: E2 0E 00 E3 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 86 [15:24:47]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:24:47]wFMCommunicate OK [15:24:47]SAM_PROTO_GetShiftState done [15:24:47]FM_GetShiftState done [15:24:47]req_shift_opened done [15:24:47]requested_item shift.open_date is exist - process it [15:24:47]req_shift_open_date [15:24:47]req_shift_open_date done [15:24:47]produce_requested_data done [15:24:47]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34438,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:24:47]process_action_free close_receipt [15:24:47]json_value_free [15:24:47]json_value_free done [15:24:47]process_json_proto returns [15:24:47]Send response to host [15:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34438,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:24:47]free response buf [15:24:47]execute_script done [15:24:47]execute_script returns [15:24:47]free content buf [15:24:47]Sock 9.Close socket [15:24:47]Sock 9.Thread stoped [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:38]accept exits with 8 [15:25:38]New connection [15:25:38]New thread 3066654052 created [15:25:38]Thread 3066510692 joined [15:25:38]Waiting for new connection... [15:25:38] Sock 8.Parse request [15:25:38]Sock 8.Check first char [15:25:38]Sock 8.First char is OK [15:25:38]request: POST /json_proto HTTP/1.0 [15:25:38]Method: POST [15:25:38]URL: /json_proto [15:25:38]Method is POST - this is cgi request [15:25:38]url: /json_proto [15:25:38]query_string will be loaded in cgi processing [15:25:38]execute_cgi json_proto POST (null) [15:25:38]execute_cgi path=json_proto method=POST [15:25:38]POST find Content-Length [15:25:38]Host: 172.17.38.134:8080 [15:25:38]Content-Length: 938 [15:25:38]Content-Type: application/json [15:25:38] [15:25:38]POST finish read [15:25:38]Found Content-Length = 938 [15:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184209", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:38]execute_script... [15:25:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184209", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:38]POST & json_proto [15:25:38]process_json_proto [15:25:38]json parsed OK: [15:25:38]protocol is kg_v1.0 [15:25:38]action value=close_receipt [15:25:38]process_action close_receipt [15:25:38]cmd_close_receipt [15:25:38]MH_GetDate [15:25:38]Write to MH i2c: F0 00 00 E4 0E E1 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 09 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: F0 09 00 E4 0E 00 F4 49 74 66 13 9C 7C 64 90 [15:25:38]GetLastDocTimeStamp 1718897085 [15:25:38]current date 1718897140 [15:25:38]FM_GetShiftState [15:25:38]SAM_PROTO_GetShiftState [15:25:38]wFMCommunicate request_size=4 [15:25:38]MH_SAM_APDU [15:25:38]CAPDU: 80 13 01 00 [15:25:38]Write to MH i2c: E2 08 00 E5 0E 80 13 01 00 00 00 00 00 70 [15:25:38]Write i2c OK [15:25:38]MH_I2C_Read... [15:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:38]Read from MH i2c: E2 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0E 00 [15:25:38]MH_I2C_Read... [15:25:38]Read from MH i2c: E2 0E 00 E5 0E 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 88 [15:25:38]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:25:38]wFMCommunicate OK [15:25:38]SAM_PROTO_GetShiftState done [15:25:38]FM_GetShiftState done [15:25:38]opened in 1718843069 [15:25:38]opened+sec_in_day 1718929469 [15:25:38]quantity*price = 6500 [15:25:38]sum+1 = 6501 [15:25:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.54 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 49 20.06.2024 15:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34439 ФПД: 66776610076526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152540&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34439&fm=66776610076526&tin=02508201610067®Number=0000000000092786&sum=17500 0 [15:25:39]StoreToDocumentArchive [15:25:39]shift 325 fd 34439 [15:25:39]save to /storage/0325/doc_00034439 [15:25:39]save last doc name /storage/0325/doc_00034439 to /storage/kkm_last_doc_name [15:25:39]save OK [15:25:39]Clear old archive folders... [15:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=394 [15:25:39]tlvbuf is 0020A7C0 [15:25:39]SAM_PROTO_ClearQueue [15:25:39]wFMCommunicate request_size=4 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 09 00 00 [15:25:39]Write to MH i2c: E2 08 00 F2 0E 80 09 00 00 00 00 00 00 72 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 F2 0E 00 90 00 74 [15:25:39]RAPDU: 90 00 [15:25:39]wFMCommunicate OK [15:25:39]SAM_PROTO_ClearQueue done [15:25:39]KKMCreateOFDPacket [15:25:39]OFDProtocolAddRootSTLVToBuf [15:25:39]FM_MakeSignedData [15:25:39]FM_MakeSignedData [15:25:39]SAM_PROTO_SignData [15:25:39]wFMCommunicate request_size=4 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 0D 01 02 [15:25:39]Write to MH i2c: E2 08 00 F3 0E 80 0D 01 02 00 00 00 00 7A [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 F3 0E 00 90 00 75 [15:25:39]RAPDU: 90 00 [15:25:39]wFMCommunicate OK [15:25:39]wFMCommunicate request_size=255 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F [15:25:39]Write to MH i2c: E2 02 01 F4 0E 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 E7 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:39]Read from MH i2c: E2 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 [15:25:39]MH_I2C_Read... [15:25:39]Read from MH i2c: E2 03 00 F4 0E 00 90 00 76 [15:25:39]RAPDU: 90 00 [15:25:39]wFMCommunicate OK [15:25:39]wFMCommunicate request_size=153 [15:25:39]MH_SAM_APDU [15:25:39]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 F4 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 86 00 00 35 04 06 00 3C BB A4 1F 77 6E [15:25:39]Write to MH i2c: E2 9C 00 F5 0E 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 F4 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 86 00 00 35 04 06 00 3C BB A4 1F 77 6E 00 00 93 [15:25:39]Write i2c OK [15:25:39]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 03 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 03 00 F5 0E 00 90 00 77 [15:25:40]RAPDU: 90 00 [15:25:40]wFMCommunicate OK [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 0D 03 02 [15:25:40]Write to MH i2c: E2 08 00 F6 0E 80 0D 03 02 00 00 00 00 7F [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0B 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 0B 00 F6 0E 00 8E D4 64 A8 6F 8E B1 81 90 00 1D [15:25:40]RAPDU: 8E D4 64 A8 6F 8E B1 81 90 00 [15:25:40]wFMCommunicate OK [15:25:40]SAM_PROTO_SignData done [15:25:40]FM_MakeSignedData done [15:25:40]CreateOFDProtocolMessage [15:25:40]wFMCommunicate request_size=4 [15:25:40]MH_SAM_APDU [15:25:40]CAPDU: 80 11 00 00 [15:25:40]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:40]Read from MH i2c: E2 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D4 [15:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:25:40]wFMCommunicate OK [15:25:40]CreateOFDProtocolMessage done [15:25:40]OFDSenderStorePacket 34439 [15:25:40]StoreOFDPacket docnum=34439 [15:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9E 01 00 00 83 F6 96 01 59 80 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 F4 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 86 00 00 35 04 06 00 3C BB A4 1F 77 6E 8E D4 64 A8 6F 8E B1 81 [15:25:40]CheckFolder [15:25:40]dirname=/storage/ofd_packets [15:25:40]CheckFolder done [15:25:40]ProducePacketName [15:25:40]name=ofd_packets/00034439 [15:25:40]NVStorageSaveData ofd_packets/00034439 [15:25:40]File name is /storage/ofd_packets/00034439 [15:25:40]Write 444 bytes [15:25:40]NVStorageSaveData done [15:25:40]OFDSenderStorePacket done [15:25:40]KKMCreateOFDPacket done [15:25:40]NVStorageSaveData kkm_last_timestamp [15:25:40]File name is /storage/kkm_last_timestamp [15:25:40]Write 4 bytes [15:25:40]NVStorageSaveData done [15:25:40]ExternCall_PrintAddStr [15:25:40]wPrintStart [15:25:40]Write to MH i2c: 01 00 00 F8 0E 06 [15:25:40]Write i2c OK [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 [15:25:40]MH_I2C_Read... [15:25:40]Read from MH i2c: 01 07 00 [15:25:40]MH_I2C_Read... [15:25:40]OFD Sender: Processing packet 34439 [packets to send 8, broken 7] [15:25:40]ProducePacketName [15:25:40]name=ofd_packets/00034439 [15:25:40]OFD Sender: To server: pG, [15:25:40]CommunicateWithHost lk.salyk.kg:30040 [15:25:40]ConnectInit lk.salyk.kg [15:25:40]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [15:25:40]RasterBufferAndPrint [15:25:40]line Счет N : (3)184209 [15:25:40]line ИНН: 02508201610067 [15:25:40]line Контрольно-Кассовый Чек [15:25:40]line ПРОДАЖА [15:25:40]line Товар: 4600338000183 [15:25:40]line Сок Фруто НЯНЯ яблоко освет 0,2л [15:25:40]line 1.000 * 65.00 [15:25:40]line = 65.00 [15:25:40]line НДС 12% НСП 1% [15:25:40]line > о реализуемом товаре [15:25:40]line Товар: 4870001570071 [15:25:40]line Напиток Pepsi 1л [15:25:40]line 1.000 * 110.00 [15:25:40]line = 110.00 [15:25:40]line НДС 12% НСП 1% [15:25:40]line > о реализуемом товаре [15:25:40]line ИТОГО: 175.00 [15:25:40]line НСП 1% : 1.54 [15:25:40]line НДС 12% : 18.58 [15:25:40]line Наличными: 175.00 [15:25:40]line Безнал.: 0.00 [15:25:40]line Место: АЗС № 120 "Партнер Нефть" [15:25:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:25:40]line СНО: Общий режим [15:25:40]line Чек 49 20.06.2024 15:25 [15:25:40]line Смена: 325 ФФД: 1.0 [15:25:40]line ЗНМ: 0300000172 [15:25:40]line РНМ: 0000000000092786 [15:25:40]line Версия ККМ: 001 [15:25:40]line ФМ: 0000000000875095 [15:25:40]line ФД: 34439 [15:25:40]line ФПД: 66776610076526 [15:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152540&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34439&fm=66776610076526&tin=02508201610067®Number=0000000000092786&sum=17500 [15:25:40]line 0 [15:25:40]written 0, free lines is 4095 [15:25:40]Connected sock=10 [15:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9E 01 00 00 83 F6 96 01 59 80 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 F4 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 86 00 00 35 04 06 00 3C BB A4 1F 77 6E 8E D4 64 A8 6F 8E B1 81 [15:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C2 EA 47 00 7D 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 86 00 00 F4 03 04 00 BE F0 73 66 B6 04 01 00 00 6B 61 B8 64 4C 3C 6E 4F [15:25:40]CommunicateWithHost err = 0 [15:25:40]CheckOFDResponse [15:25:40]1017 (14) - 77093643461234 [15:25:40]1041 (16) - 0000000000875095 [15:25:40]1040 (4) - 34439 [15:25:40]1012 (4) - 20.06.2024 09:05 [15:25:40]1206 (1) - 0 [15:25:40]OFD Sender: Remove packet 34439 [15:25:40]ProducePacketName [15:25:40]name=ofd_packets/00034439 [15:25:40]NVStorageDeleteData [15:25:41]Write to MH i2c: 01 00 00 27 0F 36 [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 07 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 9A 0C E3 [15:25:41]RasterBufferAndPrint [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]line [15:25:41]written 0, free lines is 3234 [15:25:41]MH_Cut [15:25:41]Write to MH i2c: D1 01 00 2E 0F 01 0F [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 01 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: D1 01 00 2E 0F 00 0E [15:25:41]Write to MH i2c: 01 00 00 2F 0F 3E [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]OFD Sender: No OFD packet to send [15:25:41]*** Cut start [15:25:41]*** Partial cut [15:25:41]*** CUTSNS_PIN = 1 [15:25:41]*** CUTSNS_PIN = 0 [15:25:42]*** Brake cut motor [15:25:42]Read from MH i2c: 01 [15:25:42]MH_I2C_Read... [15:25:42]*** Stop cut motor [15:25:42]*** Cut end [15:25:42]Read from MH i2c: 01 07 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [15:25:42]process_action close_receipt done [15:25:42]requested_data is exist [15:25:42]produce_requested_data [15:25:42]requested_item fm.sn is exist - process it [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 11 00 00 [15:25:42]Write to MH i2c: E2 08 00 30 0F 80 11 00 00 00 00 00 00 B9 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 17 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 17 00 30 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0E [15:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:25:42]wFMCommunicate OK [15:25:42]requested_item fd.num is exist - process it [15:25:42]SAM_PROTO_GetFieldsCounters [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 00 00 [15:25:42]Write to MH i2c: E2 08 00 31 0F 80 13 00 00 00 00 00 00 BC [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 62 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 62 00 31 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 87 86 00 00 0E 04 04 00 45 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 CC [15:25: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 87 86 00 00 0E 04 04 00 45 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 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_GetFieldsCounters done [15:25:42]requested_item shift.num is exist - process it [15:25:42]requested_item shift.opened is exist - process it [15:25:42]req_shift_opened [15:25:42]FM_GetShiftState [15:25:42]SAM_PROTO_GetShiftState [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 01 00 [15:25:42]Write to MH i2c: E2 08 00 32 0F 80 13 01 00 00 00 00 00 BE [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:42]Read from MH i2c: E2 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: E2 0E 00 32 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 D6 [15:25:42]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:25:42]wFMCommunicate OK [15:25:42]SAM_PROTO_GetShiftState done [15:25:42]FM_GetShiftState done [15:25:42]req_shift_opened done [15:25:42]requested_item shift.open_date is exist - process it [15:25:42]req_shift_open_date [15:25:42]req_shift_open_date done [15:25:42]produce_requested_data done [15:25:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34439,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:25:42]process_action_free close_receipt [15:25:42]json_value_free [15:25:42]json_value_free done [15:25:42]process_json_proto returns [15:25:42]Send response to host [15:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34439,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:25:42]free response buf [15:25:42]execute_script done [15:25:42]execute_script returns [15:25:42]free content buf [15:25:42]Sock 8.Close socket [15:25:42]Sock 8.Thread stoped [15:25:42]accept exits with 9 [15:25:42]New connection [15:25:42]New thread 3066510692 created [15:25:42]Thread 3066654052 joined [15:25:42]Waiting for new connection... [15:25:42] Sock 9.Parse request [15:25:42]Sock 9.Check first char [15:25:42]Sock 9.First char is OK [15:25:42]request: POST /json_proto HTTP/1.0 [15:25:42]Method: POST [15:25:42]URL: /json_proto [15:25:42]Method is POST - this is cgi request [15:25:42]url: /json_proto [15:25:42]query_string will be loaded in cgi processing [15:25:42]execute_cgi json_proto POST (null) [15:25:42]execute_cgi path=json_proto method=POST [15:25:42]POST find Content-Length [15:25:42]Host: 172.17.38.134:8080 [15:25:42]Content-Length: 692 [15:25:42]Content-Type: application/json [15:25:42] [15:25:42]POST finish read [15:25:42]Found Content-Length = 692 [15:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:42]execute_script... [15:25: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)673313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:42]POST & json_proto [15:25:42]process_json_proto [15:25:42]json parsed OK: [15:25:42]protocol is kg_v1.0 [15:25:42]action value=close_receipt [15:25:42]process_action close_receipt [15:25:42]cmd_close_receipt [15:25:42]MH_GetDate [15:25:42]Write to MH i2c: F0 00 00 33 0F 31 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 09 00 [15:25:42]MH_I2C_Read... [15:25:42]Read from MH i2c: F0 09 00 33 0F 00 F9 49 74 66 13 9C 7C 64 E5 [15:25:42]GetLastDocTimeStamp 1718897140 [15:25:42]current date 1718897145 [15:25:42]FM_GetShiftState [15:25:42]SAM_PROTO_GetShiftState [15:25:42]wFMCommunicate request_size=4 [15:25:42]MH_SAM_APDU [15:25:42]CAPDU: 80 13 01 00 [15:25:42]Write to MH i2c: E2 08 00 34 0F 80 13 01 00 00 00 00 00 C0 [15:25:42]Write i2c OK [15:25:42]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 34 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 D8 [15:25:43]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_GetShiftState done [15:25:43]FM_GetShiftState done [15:25:43]opened in 1718843069 [15:25:43]opened+sec_in_day 1718929469 [15:25:43]quantity*price = 1000042 [15:25:43]sum+1 = 1000043 [15:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 20.06.2024 15:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34440 ФПД: 121949161647680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152545&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34440&fm=121949161647680&tin=02508201610067®Number=0000000000092786&sum=1000000 [15:25:44]StoreToDocumentArchive [15:25:44]shift 325 fd 34440 [15:25:44]save to /storage/0325/doc_00034440 [15:25:44]save last doc name /storage/0325/doc_00034440 to /storage/kkm_last_doc_name [15:25:44]save OK [15:25:44]Clear old archive folders... [15:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:25:44]tlvbuf is 00289950 [15:25:44]SAM_PROTO_ClearQueue [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 09 00 00 [15:25:44]Write to MH i2c: E2 08 00 41 0F 80 09 00 00 00 00 00 00 C2 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 41 0F 00 90 00 C4 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]SAM_PROTO_ClearQueue done [15:25:44]KKMCreateOFDPacket [15:25:44]OFDProtocolAddRootSTLVToBuf [15:25:44]FM_MakeSignedData [15:25:44]FM_MakeSignedData [15:25:44]SAM_PROTO_SignData [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 01 02 [15:25:44]Write to MH i2c: E2 08 00 42 0F 80 0D 01 02 00 00 00 00 CA [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=255 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 86 00 00 35 04 06 00 [15:25:44]Write to MH i2c: E2 02 01 43 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 86 00 00 35 04 06 00 00 00 4C [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=11 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 02 02 06 6E E9 80 75 EE 40 [15:25:44]Write to MH i2c: E2 0E 00 44 0F 80 0D 02 02 06 00 6E E9 80 75 EE 40 00 00 53 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 03 02 [15:25:44]Write to MH i2c: E2 08 00 45 0F 80 0D 03 02 00 00 00 00 CF [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0B 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0B 00 45 0F 00 1E 15 5C CE E2 D1 F2 9A 90 00 6C [15:25:45]RAPDU: 1E 15 5C CE E2 D1 F2 9A 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_SignData done [15:25:45]FM_MakeSignedData done [15:25:45]CreateOFDProtocolMessage [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 11 00 00 [15:25:45]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 24 [15:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:25:45]wFMCommunicate OK [15:25:45]CreateOFDProtocolMessage done [15:25:45]OFDSenderStorePacket 34440 [15:25:45]StoreOFDPacket docnum=34440 [15:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 2F CA 08 01 DE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 86 00 00 35 04 06 00 6E E9 80 75 EE 40 1E 15 5C CE E2 D1 F2 9A [15:25:45]CheckFolder [15:25:45]dirname=/storage/ofd_packets [15:25:45]CheckFolder done [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00034440 [15:25:45]NVStorageSaveData ofd_packets/00034440 [15:25:45]File name is /storage/ofd_packets/00034440 [15:25:45]Write 302 bytes [15:25:45]NVStorageSaveData done [15:25:45]OFDSenderStorePacket done [15:25:45]KKMCreateOFDPacket done [15:25:45]NVStorageSaveData kkm_last_timestamp [15:25:45]File name is /storage/kkm_last_timestamp [15:25:45]Write 4 bytes [15:25:45]NVStorageSaveData done [15:25:45]ExternCall_PrintAddStr [15:25:45]wPrintStart [15:25:45]Write to MH i2c: 01 00 00 47 0F 56 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 FF 0F 6B [15:25:45]RasterBufferAndPrint [15:25:45]line Счет N : (1)673313 [15:25:45]line ИНН: 02508201610067 [15:25:45]line Контрольно-Кассовый Чек [15:25:45]line ПРОДАЖА [15:25:45]line ТРК (МРК, ГНК) : 11 [15:25:45]line Товар: 2710194210 [15:25:45]line ДТ(л)-К-5 [15:25:45]line 137.180 * 72.90 [15:25:45]line = 10000.42 [15:25:45]line НДС 12% НСП 1% [15:25:45]line > о реализуемом товаре [15:25:45]line ОКРУГЛЕНИЕ: -0.42 [15:25:45]line ИТОГО: 10000.00 [15:25:45]line Внесено: 10000.00 [15:25:45]line СДАЧА: 0.00 [15:25:45]line НСП 1% : 88.50 [15:25:45]line НДС 12% : 1061.99 [15:25:45]line Наличными: 10000.00 [15:25:45]line Безнал.: 0.00 [15:25:45]line Место: АЗС № 120 "Партнер Нефть" [15:25:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:25:45]line СНО: Общий режим [15:25:45]line Чек 50 20.06.2024 15:25 [15:25:45]line Смена: 325 ФФД: 1.0 [15:25:45]line ЗНМ: 0300000172 [15:25:45]line РНМ: 0000000000092786 [15:25:45]line Версия ККМ: 001 [15:25:45]line ФМ: 0000000000875095 [15:25:45]line ФД: 34440 [15:25:45]line ФПД: 121949161647680 [15:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152545&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34440&fm=121949161647680&tin=02508201610067®Number=0000000000092786&sum=1000000 [15:25:45]written 0, free lines is 4095 [15:25:45]OFD Sender: Processing packet 34440 [packets to send 8, broken 7] [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00034440 [15:25:45]OFD Sender: To server: pG, [15:25:45]CommunicateWithHost lk.salyk.kg:30040 [15:25:45]ConnectInit lk.salyk.kg [15:25:45]Connected sock=10 [15:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 2F CA 08 01 DE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F9 49 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 86 00 00 35 04 06 00 6E E9 80 75 EE 40 1E 15 5C CE E2 D1 F2 9A [15:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 28 28 47 00 27 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 86 00 00 F4 03 04 00 C2 F0 73 66 B6 04 01 00 00 10 3D D0 45 2E D2 C0 7D [15:25:45]CommunicateWithHost err = 0 [15:25:45]CheckOFDResponse [15:25:45]1017 (14) - 77093643461234 [15:25:45]1041 (16) - 0000000000875095 [15:25:45]1040 (4) - 34440 [15:25:45]1012 (4) - 20.06.2024 09:05 [15:25:45]1206 (1) - 0 [15:25:45]OFD Sender: Remove packet 34440 [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00034440 [15:25:45]NVStorageDeleteData [15:25:45]Write to MH i2c: 01 00 00 72 0F 81 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 72 0F 00 00 00 00 00 01 0D 96 [15:25:45]RasterBufferAndPrint [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]written 0, free lines is 3345 [15:25:45]MH_Cut [15:25:45]Write to MH i2c: D1 01 00 79 0F 01 5A [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 79 0F 00 59 [15:25:45]Write to MH i2c: 01 00 00 7A 0F 89 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:46]OFD Sender: No OFD packet to send [15:25:46]*** Cut start [15:25:46]*** Partial cut [15:25:46]*** CUTSNS_PIN = 1 [15:25:46]*** CUTSNS_PIN = 0 [15:25:46]*** Brake cut motor [15:25:46]Read from MH i2c: 01 [15:25:46]MH_I2C_Read... [15:25:46]*** Stop cut motor [15:25:46]*** Cut end [15:25:46]Read from MH i2c: 01 07 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 FF 0F 9E [15:25:46]process_action close_receipt done [15:25:46]requested_data is exist [15:25:46]produce_requested_data [15:25:46]requested_item fm.sn is exist - process it [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 11 00 00 [15:25:46]Write to MH i2c: E2 08 00 7B 0F 80 11 00 00 00 00 00 00 04 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:46]Read from MH i2c: E2 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 [15:25:46]MH_I2C_Read... [15:25:46]Read from MH i2c: E2 17 00 7B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 59 [15:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:25:46]wFMCommunicate OK [15:25:46]requested_item fd.num is exist - process it [15:25:46]SAM_PROTO_GetFieldsCounters [15:25:46]wFMCommunicate request_size=4 [15:25:46]MH_SAM_APDU [15:25:46]CAPDU: 80 13 00 00 [15:25:46]Write to MH i2c: E2 08 00 7C 0F 80 13 00 00 00 00 00 00 07 [15:25:46]Write i2c OK [15:25:46]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 62 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 62 00 7C 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 88 86 00 00 0E 04 04 00 45 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 1B [15:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 88 86 00 00 0E 04 04 00 45 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 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetFieldsCounters done [15:25:47]requested_item shift.num is exist - process it [15:25:47]requested_item shift.opened is exist - process it [15:25:47]req_shift_opened [15:25:47]FM_GetShiftState [15:25:47]SAM_PROTO_GetShiftState [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 01 00 [15:25:47]Write to MH i2c: E2 08 00 7D 0F 80 13 01 00 00 00 00 00 09 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 7D 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 21 [15:25:47]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetShiftState done [15:25:47]FM_GetShiftState done [15:25:47]req_shift_opened done [15:25:47]requested_item shift.open_date is exist - process it [15:25:47]req_shift_open_date [15:25:47]req_shift_open_date done [15:25:47]produce_requested_data done [15:25:47]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34440,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:25:47]process_action_free close_receipt [15:25:47]json_value_free [15:25:47]json_value_free done [15:25:47]process_json_proto returns [15:25:47]Send response to host [15:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34440,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:25:47]free response buf [15:25:47]execute_script done [15:25:47]execute_script returns [15:25:47]free content buf [15:25:47]Sock 9.Close socket [15:25:47]Sock 9.Thread stoped [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:47]accept exits with 8 [15:27:47]New connection [15:27:47]New thread 3066654052 created [15:27:47]Thread 3066510692 joined [15:27:47]Waiting for new connection... [15:27:47] Sock 8.Parse request [15:27:47]Sock 8.Check first char [15:27:47]Sock 8.First char is OK [15:27:47]request: POST /json_proto HTTP/1.0 [15:27:47]Method: POST [15:27:47]URL: /json_proto [15:27:47]Method is POST - this is cgi request [15:27:47]url: /json_proto [15:27:47]query_string will be loaded in cgi processing [15:27:47]execute_cgi json_proto POST (null) [15:27:47]execute_cgi path=json_proto method=POST [15:27:47]POST find Content-Length [15:27:47]Host: 172.17.38.134:8080 [15:27:47]Content-Length: 673 [15:27:47]Content-Type: application/json [15:27:47] [15:27:47]POST finish read [15:27:47]Found Content-Length = 673 [15:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184210", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:47]execute_script... [15:27: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)184210", "tax_sys" : 0, "items" : [ { "code": "4670003190051", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u041640 \u043A\u0440\u0430\u0441 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:47]POST & json_proto [15:27:47]process_json_proto [15:27:47]json parsed OK: [15:27:47]protocol is kg_v1.0 [15:27:47]action value=close_receipt [15:27:47]process_action close_receipt [15:27:47]cmd_close_receipt [15:27:47]MH_GetDate [15:27:47]Write to MH i2c: F0 00 00 7E 0F 7C [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: F0 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: F0 09 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: F0 09 00 7E 0F 00 75 4A 74 66 13 9C 7C 64 AD [15:27:47]GetLastDocTimeStamp 1718897145 [15:27:47]current date 1718897269 [15:27:47]FM_GetShiftState [15:27:47]SAM_PROTO_GetShiftState [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 13 01 00 [15:27:47]Write to MH i2c: E2 08 00 7F 0F 80 13 01 00 00 00 00 00 0B [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 7F 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 23 [15:27:47]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_GetShiftState done [15:27:47]FM_GetShiftState done [15:27:47]opened in 1718843069 [15:27:47]opened+sec_in_day 1718929469 [15:27:47]quantity*price = 22500 [15:27:47]sum+1 = 22501 [15:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 51 20.06.2024 15:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34441 ФПД: 145595266024247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152749&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34441&fm=145595266024247&tin=02508201610067®Number=0000000000092786&sum=22500 0 [15:27:48]StoreToDocumentArchive [15:27:48]shift 325 fd 34441 [15:27:48]save to /storage/0325/doc_00034441 [15:27:48]save last doc name /storage/0325/doc_00034441 to /storage/kkm_last_doc_name [15:27:48]save OK [15:27:48]Clear old archive folders... [15:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=297 [15:27:48]tlvbuf is 0021AE20 [15:27:48]SAM_PROTO_ClearQueue [15:27:48]wFMCommunicate request_size=4 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 09 00 00 [15:27:48]Write to MH i2c: E2 08 00 8C 0F 80 09 00 00 00 00 00 00 0D [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [15:27:48]RAPDU: 90 00 [15:27:48]wFMCommunicate OK [15:27:48]SAM_PROTO_ClearQueue done [15:27:48]KKMCreateOFDPacket [15:27:48]OFDProtocolAddRootSTLVToBuf [15:27:48]FM_MakeSignedData [15:27:48]FM_MakeSignedData [15:27:48]SAM_PROTO_SignData [15:27:48]wFMCommunicate request_size=4 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 0D 01 02 [15:27:48]Write to MH i2c: E2 08 00 8D 0F 80 0D 01 02 00 00 00 00 15 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [15:27:48]RAPDU: 90 00 [15:27:48]wFMCommunicate OK [15:27:48]wFMCommunicate request_size=255 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 75 4A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [15:27:48]Write to MH i2c: E2 02 01 8E 0F 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 75 4A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 67 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [15:27:48]RAPDU: 90 00 [15:27:48]wFMCommunicate OK [15:27:48]wFMCommunicate request_size=56 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 86 00 00 35 04 06 00 84 6B 0A 1C C3 37 [15:27:48]Write to MH i2c: E2 3B 00 8F 0F 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 86 00 00 35 04 06 00 84 6B 0A 1C C3 37 00 00 CA [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [15:27:48]RAPDU: 90 00 [15:27:48]wFMCommunicate OK [15:27:48]wFMCommunicate request_size=4 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 0D 03 02 [15:27:48]Write to MH i2c: E2 08 00 90 0F 80 0D 03 02 00 00 00 00 1A [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 0B 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 0B 00 90 0F 00 41 B7 66 ED 55 7F 58 46 90 00 D8 [15:27:48]RAPDU: 41 B7 66 ED 55 7F 58 46 90 00 [15:27:48]wFMCommunicate OK [15:27:48]SAM_PROTO_SignData done [15:27:48]FM_MakeSignedData done [15:27:48]CreateOFDProtocolMessage [15:27:48]wFMCommunicate request_size=4 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 11 00 00 [15:27:48]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 17 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6F [15:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:27:48]wFMCommunicate OK [15:27:48]CreateOFDProtocolMessage done [15:27:48]OFDSenderStorePacket 34441 [15:27:48]StoreOFDPacket docnum=34441 [15:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3D 01 00 00 69 02 35 01 C0 F0 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 75 4A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 86 00 00 35 04 06 00 84 6B 0A 1C C3 37 41 B7 66 ED 55 7F 58 46 [15:27:48]CheckFolder [15:27:48]dirname=/storage/ofd_packets [15:27:48]CheckFolder done [15:27:48]ProducePacketName [15:27:48]name=ofd_packets/00034441 [15:27:48]NVStorageSaveData ofd_packets/00034441 [15:27:48]File name is /storage/ofd_packets/00034441 [15:27:48]Write 347 bytes [15:27:48]NVStorageSaveData done [15:27:48]OFDSenderStorePacket done [15:27:48]KKMCreateOFDPacket done [15:27:48]NVStorageSaveData kkm_last_timestamp [15:27:48]File name is /storage/kkm_last_timestamp [15:27:48]Write 4 bytes [15:27:48]NVStorageSaveData done [15:27:48]ExternCall_PrintAddStr [15:27:48]wPrintStart [15:27:48]Write to MH i2c: 01 00 00 92 0F A1 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 92 0F 00 00 00 00 00 FF 0F B6 [15:27:48]RasterBufferAndPrint [15:27:48]line Счет N : (3)184210 [15:27:48]line ИНН: 02508201610067 [15:27:48]line Контрольно-Кассовый Чек [15:27:48]line ПРОДАЖА [15:27:48]line Товар: 4670003190051 [15:27:48]line Антифриз SIBIRIA ANTIFREEZE ОЖ40 крас 1л [15:27:48]line 1.000 * 225.00 [15:27:48]line = 225.00 [15:27:48]line НДС 12% НСП 1% [15:27:48]line > о реализуемом товаре [15:27:48]line ИТОГО: 225.00 [15:27:48]line НСП 1% : 1.99 [15:27:48]line НДС 12% : 23.89 [15:27:48]line Наличными: 225.00 [15:27:48]line Безнал.: 0.00 [15:27:48]line Место: АЗС № 120 "Партнер Нефть" [15:27:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:27:48]line СНО: Общий режим [15:27:48]line Чек 51 20.06.2024 15:27 [15:27:48]line Смена: 325 ФФД: 1.0 [15:27:48]line ЗНМ: 0300000172 [15:27:48]line РНМ: 0000000000092786 [15:27:48]line Версия ККМ: 001 [15:27:48]line ФМ: 0000000000875095 [15:27:48]line ФД: 34441 [15:27:48]line ФПД: 145595266024247 [15:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152749&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34441&fm=145595266024247&tin=02508201610067®Number=0000000000092786&sum=22500 [15:27:49]line 0 [15:27:49]OFD Sender: Processing packet 34441 [packets to send 8, broken 7] [15:27:49]ProducePacketName [15:27:49]name=ofd_packets/00034441 [15:27:49]OFD Sender: To server: pG, [15:27:49]CommunicateWithHost lk.salyk.kg:30040 [15:27:49]ConnectInit lk.salyk.kg [15:27:49]written 0, free lines is 4095 [15:27:49]Connected sock=10 [15:27:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3D 01 00 00 69 02 35 01 C0 F0 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 35 31 06 04 37 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 34 30 20 D0 BA D1 80 D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 75 4A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 86 00 00 35 04 06 00 84 6B 0A 1C C3 37 41 B7 66 ED 55 7F 58 46 [15:27:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D8 D8 47 00 DE 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 86 00 00 F4 03 04 00 3E F1 73 66 B6 04 01 00 00 BB 7D 2D DB C8 67 DB 8E [15:27:49]CommunicateWithHost err = 0 [15:27:49]CheckOFDResponse [15:27:49]1017 (14) - 77093643461234 [15:27:49]1041 (16) - 0000000000875095 [15:27:49]1040 (4) - 34441 [15:27:49]1012 (4) - 20.06.2024 09:07 [15:27:49]1206 (1) - 0 [15:27:49]OFD Sender: Remove packet 34441 [15:27:49]ProducePacketName [15:27:49]name=ofd_packets/00034441 [15:27:49]NVStorageDeleteData [15:27:49]Write to MH i2c: 01 00 00 BB 0F CA [15:27:49]Write i2c OK [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: 01 [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: 01 07 00 [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: 01 07 00 BB 0F 00 00 00 00 00 09 0D E7 [15:27:49]RasterBufferAndPrint [15:27:49]line [15:27:49]line [15:27:49]line [15:27:49]line [15:27:49]line [15:27:49]written 0, free lines is 3344 [15:27:49]MH_Cut [15:27:49]Write to MH i2c: D1 01 00 C2 0F 01 A3 [15:27:49]Write i2c OK [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: D1 [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: D1 01 00 [15:27:49]MH_I2C_Read... [15:27:49]Read from MH i2c: D1 01 00 C2 0F 00 A2 [15:27:49]Write to MH i2c: 01 00 00 C3 0F D2 [15:27:49]Write i2c OK [15:27:49]MH_I2C_Read... [15:27:50]OFD Sender: No OFD packet to send [15:27:50]*** Cut start [15:27:50]*** Partial cut [15:27:50]*** CUTSNS_PIN = 1 [15:27:50]*** CUTSNS_PIN = 0 [15:27:50]*** Brake cut motor [15:27:50]Read from MH i2c: 01 [15:27:50]MH_I2C_Read... [15:27:50]*** Stop cut motor [15:27:50]*** Cut end [15:27:50]Read from MH i2c: 01 07 00 [15:27:50]MH_I2C_Read... [15:27:50]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [15:27:50]process_action close_receipt done [15:27:50]requested_data is exist [15:27:50]produce_requested_data [15:27:50]requested_item fm.sn is exist - process it [15:27:50]wFMCommunicate request_size=4 [15:27:50]MH_SAM_APDU [15:27:50]CAPDU: 80 11 00 00 [15:27:50]Write to MH i2c: E2 08 00 C4 0F 80 11 00 00 00 00 00 00 4D [15:27:50]Write i2c OK [15:27:50]MH_I2C_Read... [15:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:50]Read from MH i2c: E2 [15:27:50]MH_I2C_Read... [15:27:50]Read from MH i2c: E2 17 00 [15:27:50]MH_I2C_Read... [15:27:50]Read from MH i2c: E2 17 00 C4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A2 [15:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:27:50]wFMCommunicate OK [15:27:50]requested_item fd.num is exist - process it [15:27:50]SAM_PROTO_GetFieldsCounters [15:27:50]wFMCommunicate request_size=4 [15:27:50]MH_SAM_APDU [15:27:50]CAPDU: 80 13 00 00 [15:27:50]Write to MH i2c: E2 08 00 C5 0F 80 13 00 00 00 00 00 00 50 [15:27:50]Write i2c OK [15:27:50]MH_I2C_Read... [15:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:51]Read from MH i2c: E2 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 62 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 62 00 C5 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 89 86 00 00 0E 04 04 00 45 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 68 [15: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 89 86 00 00 0E 04 04 00 45 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 [15:27:51]wFMCommunicate OK [15:27:51]SAM_PROTO_GetFieldsCounters done [15:27:51]requested_item shift.num is exist - process it [15:27:51]requested_item shift.opened is exist - process it [15:27:51]req_shift_opened [15:27:51]FM_GetShiftState [15:27:51]SAM_PROTO_GetShiftState [15:27:51]wFMCommunicate request_size=4 [15:27:51]MH_SAM_APDU [15:27:51]CAPDU: 80 13 01 00 [15:27:51]Write to MH i2c: E2 08 00 C6 0F 80 13 01 00 00 00 00 00 52 [15:27:51]Write i2c OK [15:27:51]MH_I2C_Read... [15:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:51]Read from MH i2c: E2 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 0E 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 0E 00 C6 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 6A [15:27:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:27:51]wFMCommunicate OK [15:27:51]SAM_PROTO_GetShiftState done [15:27:51]FM_GetShiftState done [15:27:51]req_shift_opened done [15:27:51]requested_item shift.open_date is exist - process it [15:27:51]req_shift_open_date [15:27:51]req_shift_open_date done [15:27:51]produce_requested_data done [15:27:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34441,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:27:51]process_action_free close_receipt [15:27:51]json_value_free [15:27:51]json_value_free done [15:27:51]process_json_proto returns [15:27:51]Send response to host [15:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34441,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:27:51]free response buf [15:27:51]execute_script done [15:27:51]execute_script returns [15:27:51]free content buf [15:27:51]Sock 8.Close socket [15:27:51]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [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:53]accept exits with 9 [15:31:53]New connection [15:31:53]New thread 3066510692 created [15:31:53]Thread 3066654052 joined [15:31:53]Waiting for new connection... [15:31:53] Sock 9.Parse request [15:31:53]Sock 9.Check first char [15:31:53]Sock 9.First char is OK [15:31:53]request: POST /json_proto HTTP/1.0 [15:31:53]Method: POST [15:31:53]URL: /json_proto [15:31:53]Method is POST - this is cgi request [15:31:53]url: /json_proto [15:31:53]query_string will be loaded in cgi processing [15:31:53]execute_cgi json_proto POST (null) [15:31:53]execute_cgi path=json_proto method=POST [15:31:53]POST find Content-Length [15:31:53]Host: 172.17.38.134:8080 [15:31:53]Content-Length: 869 [15:31:53]Content-Type: application/json [15:31:53] [15:31:53]POST finish read [15:31:53]Found Content-Length = 869 [15:31:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184211", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:53]execute_script... [15:31:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184211", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:53]POST & json_proto [15:31:53]process_json_proto [15:31:53]json parsed OK: [15:31:53]protocol is kg_v1.0 [15:31:53]action value=close_receipt [15:31:53]process_action close_receipt [15:31:53]cmd_close_receipt [15:31:53]MH_GetDate [15:31:53]Write to MH i2c: F0 00 00 C7 0F C5 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 09 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: F0 09 00 C7 0F 00 6B 4B 74 66 13 9C 7C 64 ED [15:31:53]GetLastDocTimeStamp 1718897269 [15:31:53]current date 1718897515 [15:31:53]FM_GetShiftState [15:31:53]SAM_PROTO_GetShiftState [15:31:53]wFMCommunicate request_size=4 [15:31:53]MH_SAM_APDU [15:31:53]CAPDU: 80 13 01 00 [15:31:53]Write to MH i2c: E2 08 00 C8 0F 80 13 01 00 00 00 00 00 54 [15:31:53]Write i2c OK [15:31:53]MH_I2C_Read... [15:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:53]Read from MH i2c: E2 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: E2 0E 00 [15:31:53]MH_I2C_Read... [15:31:53]Read from MH i2c: E2 0E 00 C8 0F 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 6C [15:31:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:31:53]wFMCommunicate OK [15:31:53]SAM_PROTO_GetShiftState done [15:31:53]FM_GetShiftState done [15:31:53]opened in 1718843069 [15:31:53]opened+sec_in_day 1718929469 [15:31:53]quantity*price = 6000 [15:31:53]sum+1 = 6001 [15:31:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40052403 Nestle KIT-KAT плоский 41,5г 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 20.06.2024 15:31 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34442 ФПД: 5663880160777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153155&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34442&fm=5663880160777&tin=02508201610067®Number=0000000000092786&sum=24000 0 [15:31:54]StoreToDocumentArchive [15:31:54]shift 325 fd 34442 [15:31:54]save to /storage/0325/doc_00034442 [15:31:54]save last doc name /storage/0325/doc_00034442 to /storage/kkm_last_doc_name [15:31:54]save OK [15:31:54]Clear old archive folders... [15:31:54]ProcessDocumentItem done err = 0, tmpTLVsize=374 [15:31:54]tlvbuf is 0026F210 [15:31:54]SAM_PROTO_ClearQueue [15:31:54]wFMCommunicate request_size=4 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 09 00 00 [15:31:54]Write to MH i2c: E2 08 00 D5 0F 80 09 00 00 00 00 00 00 56 [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:54]Read from MH i2c: E2 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 D5 0F 00 90 00 58 [15:31:54]RAPDU: 90 00 [15:31:54]wFMCommunicate OK [15:31:54]SAM_PROTO_ClearQueue done [15:31:54]KKMCreateOFDPacket [15:31:54]OFDProtocolAddRootSTLVToBuf [15:31:54]FM_MakeSignedData [15:31:54]FM_MakeSignedData [15:31:54]SAM_PROTO_SignData [15:31:54]wFMCommunicate request_size=4 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 0D 01 02 [15:31:54]Write to MH i2c: E2 08 00 D6 0F 80 0D 01 02 00 00 00 00 5E [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:54]Read from MH i2c: E2 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 D6 0F 00 90 00 59 [15:31:54]RAPDU: 90 00 [15:31:54]wFMCommunicate OK [15:31:54]wFMCommunicate request_size=255 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 0D 02 02 FA 03 00 76 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 [15:31:54]Write to MH i2c: E2 02 01 D7 0F 80 0D 02 02 FA 00 03 00 76 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 00 00 12 [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:54]Read from MH i2c: E2 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 [15:31:54]MH_I2C_Read... [15:31:54]Read from MH i2c: E2 03 00 D7 0F 00 90 00 5A [15:31:54]RAPDU: 90 00 [15:31:54]wFMCommunicate OK [15:31:54]wFMCommunicate request_size=133 [15:31:54]MH_SAM_APDU [15:31:54]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 86 00 00 35 04 06 00 05 26 B9 90 A6 09 [15:31:54]Write to MH i2c: E2 88 00 D8 0F 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 86 00 00 35 04 06 00 05 26 B9 90 A6 09 00 00 EE [15:31:54]Write i2c OK [15:31:54]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [15:31:55]RAPDU: 90 00 [15:31:55]wFMCommunicate OK [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 0D 03 02 [15:31:55]Write to MH i2c: E2 08 00 D9 0F 80 0D 03 02 00 00 00 00 63 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0B 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0B 00 D9 0F 00 93 A4 6D AA 11 DC F6 68 90 00 FD [15:31:55]RAPDU: 93 A4 6D AA 11 DC F6 68 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_SignData done [15:31:55]FM_MakeSignedData done [15:31:55]CreateOFDProtocolMessage [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 11 00 00 [15:31:55]Write to MH i2c: E2 08 00 DA 0F 80 11 00 00 00 00 00 00 63 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 17 00 DA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B8 [15:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:31:55]wFMCommunicate OK [15:31:55]CreateOFDProtocolMessage done [15:31:55]OFDSenderStorePacket 34442 [15:31:55]StoreOFDPacket docnum=34442 [15:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8A 01 00 00 F9 70 82 01 CC 8C 5A 03 01 00 03 00 76 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 86 00 00 35 04 06 00 05 26 B9 90 A6 09 93 A4 6D AA 11 DC F6 68 [15:31:55]CheckFolder [15:31:55]dirname=/storage/ofd_packets [15:31:55]CheckFolder done [15:31:55]ProducePacketName [15:31:55]name=ofd_packets/00034442 [15:31:55]NVStorageSaveData ofd_packets/00034442 [15:31:55]File name is /storage/ofd_packets/00034442 [15:31:55]Write 424 bytes [15:31:55]NVStorageSaveData done [15:31:55]OFDSenderStorePacket done [15:31:55]KKMCreateOFDPacket done [15:31:55]NVStorageSaveData kkm_last_timestamp [15:31:55]File name is /storage/kkm_last_timestamp [15:31:55]Write 4 bytes [15:31:55]NVStorageSaveData done [15:31:55]ExternCall_PrintAddStr [15:31:55]wPrintStart [15:31:55]Write to MH i2c: 01 00 00 DB 0F EA [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 DB 0F 00 00 00 00 00 FF 0F FF [15:31:55]RasterBufferAndPrint [15:31:55]line Счет N : (3)184211 [15:31:55]line ИНН: 02508201610067 [15:31:55]line Контрольно-Кассовый Чек [15:31:55]line ПРОДАЖА [15:31:55]line Товар: 4700000160204 [15:31:55]line Вода Легенда 1,5л [15:31:55]line 1.000 * 60.00 [15:31:55]line = 60.00 [15:31:55]line НДС 12% НСП 1% [15:31:55]line > о реализуемом товаре [15:31:55]line Товар: 40052403 [15:31:55]line Nestle KIT-KAT плоский 41,5г [15:31:55]line 2.000 * 90.00 [15:31:55]line = 180.00 [15:31:55]line НДС 12% НСП 1% [15:31:55]line > о реализуемом товаре [15:31:55]line ИТОГО: 240.00 [15:31:55]line НСП 1% : 2.12 [15:31:55]line НДС 12% : 25.48 [15:31:55]line Наличными: 240.00 [15:31:55]line Безнал.: 0.00 [15:31:55]line Место: АЗС № 120 "Партнер Нефть" [15:31:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:31:55]line СНО: Общий режим [15:31:55]line Чек 52 20.06.2024 15:31 [15:31:55]line Смена: 325 ФФД: 1.0 [15:31:55]line ЗНМ: 0300000172 [15:31:55]line РНМ: 0000000000092786 [15:31:55]line Версия ККМ: 001 [15:31:55]line ФМ: 0000000000875095 [15:31:55]line ФД: 34442 [15:31:55]line ФПД: 5663880160777 [15:31:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153155&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34442&fm=5663880160777&tin=02508201610067®Number=0000000000092786&sum=24000 [15:31:55]line 0 [15:31:55]OFD Sender: Processing packet 34442 [packets to send 8, broken 7] [15:31:55]ProducePacketName [15:31:55]name=ofd_packets/00034442 [15:31:55]OFD Sender: To server: pG, [15:31:55]CommunicateWithHost lk.salyk.kg:30040 [15:31:55]ConnectInit lk.salyk.kg [15:31:55]written 0, free lines is 4095 [15:31:55]Connected sock=10 [15:31:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8A 01 00 00 F9 70 82 01 CC 8C 5A 03 01 00 03 00 76 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 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 6B 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 86 00 00 35 04 06 00 05 26 B9 90 A6 09 93 A4 6D AA 11 DC F6 68 [15:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D5 45 47 00 43 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 35 30 39 35 10 04 04 00 8A 86 00 00 F4 03 04 00 35 F2 73 66 B6 04 01 00 00 CD D4 5A 79 54 48 1C B0 [15:31:55]CommunicateWithHost err = 0 [15:31:55]CheckOFDResponse [15:31:55]1017 (14) - 77093643461234 [15:31:55]1041 (16) - 0000000000875095 [15:31:55]1040 (4) - 34442 [15:31:55]1012 (4) - 20.06.2024 09:11 [15:31:55]1206 (1) - 0 [15:31:55]OFD Sender: Remove packet 34442 [15:31:55]ProducePacketName [15:31:55]name=ofd_packets/00034442 [15:31:55]NVStorageDeleteData [15:31:55]Write to MH i2c: 01 00 00 09 10 19 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: 01 07 00 [15:31:55]MH_I2C_Read... [15:31:56]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 B9 0C E5 [15:31:56]RasterBufferAndPrint [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]line [15:31:56]written 0, free lines is 3262 [15:31:56]MH_Cut [15:31:56]Write to MH i2c: D1 01 00 10 10 01 F2 [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 01 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: D1 01 00 10 10 00 F1 [15:31:56]Write to MH i2c: 01 00 00 11 10 21 [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]OFD Sender: No OFD packet to send [15:31:56]*** Cut start [15:31:56]*** Partial cut [15:31:56]*** CUTSNS_PIN = 1 [15:31:56]*** CUTSNS_PIN = 0 [15:31:57]*** Brake cut motor [15:31:57]Read from MH i2c: 01 [15:31:57]MH_I2C_Read... [15:31:57]*** Stop cut motor [15:31:57]*** Cut end [15:31:57]Read from MH i2c: 01 07 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [15:31:57]process_action close_receipt done [15:31:57]requested_data is exist [15:31:57]produce_requested_data [15:31:57]requested_item fm.sn is exist - process it [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 11 00 00 [15:31:57]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 17 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F1 [15:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:31:57]wFMCommunicate OK [15:31:57]requested_item fd.num is exist - process it [15:31:57]SAM_PROTO_GetFieldsCounters [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 13 00 00 [15:31:57]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 62 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 62 00 13 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8A 86 00 00 0E 04 04 00 45 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 BB [15:31:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8A 86 00 00 0E 04 04 00 45 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 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_GetFieldsCounters done [15:31:57]requested_item shift.num is exist - process it [15:31:57]requested_item shift.opened is exist - process it [15:31:57]req_shift_opened [15:31:57]FM_GetShiftState [15:31:57]SAM_PROTO_GetShiftState [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 13 01 00 [15:31:57]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 B9 [15:31:57]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_GetShiftState done [15:31:57]FM_GetShiftState done [15:31:57]req_shift_opened done [15:31:57]requested_item shift.open_date is exist - process it [15:31:57]req_shift_open_date [15:31:57]req_shift_open_date done [15:31:57]produce_requested_data done [15:31:57]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34442,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:31:57]process_action_free close_receipt [15:31:57]json_value_free [15:31:57]json_value_free done [15:31:57]process_json_proto returns [15:31:57]Send response to host [15:31:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34442,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:31:57]free response buf [15:31:57]execute_script done [15:31:57]execute_script returns [15:31:57]free content buf [15:31:57]Sock 9.Close socket [15:31:57]Sock 9.Thread stoped [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]accept exits with 8 [15:32:21]New connection [15:32:21]New thread 3066654052 created [15:32:21]Thread 3066510692 joined [15:32:21]Waiting for new connection... [15:32:21] Sock 8.Parse request [15:32:21]Sock 8.Check first char [15:32:21]Sock 8.First char is OK [15:32:21]request: POST /json_proto HTTP/1.0 [15:32:21]Method: POST [15:32:21]URL: /json_proto [15:32:21]Method is POST - this is cgi request [15:32:21]url: /json_proto [15:32:21]query_string will be loaded in cgi processing [15:32:21]execute_cgi json_proto POST (null) [15:32:21]execute_cgi path=json_proto method=POST [15:32:21]POST find Content-Length [15:32:21]Host: 172.17.38.134:8080 [15:32:21]Content-Length: 626 [15:32:21]Content-Type: application/json [15:32:21] [15:32:21]POST finish read [15:32:21]Found Content-Length = 626 [15:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184212", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:21]execute_script... [15:32:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184212", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:21]POST & json_proto [15:32:21]process_json_proto [15:32:21]json parsed OK: [15:32:21]protocol is kg_v1.0 [15:32:21]action value=close_receipt [15:32:21]process_action close_receipt [15:32:21]cmd_close_receipt [15:32:21]MH_GetDate [15:32:21]Write to MH i2c: F0 00 00 15 10 14 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: F0 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: F0 09 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: F0 09 00 15 10 00 87 4B 74 66 13 9C 7C 64 58 [15:32:21]GetLastDocTimeStamp 1718897515 [15:32:21]current date 1718897543 [15:32:21]FM_GetShiftState [15:32:21]SAM_PROTO_GetShiftState [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 13 01 00 [15:32:21]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0E 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 BB [15:32:21]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_GetShiftState done [15:32:21]FM_GetShiftState done [15:32:21]opened in 1718843069 [15:32:21]opened+sec_in_day 1718929469 [15:32:21]quantity*price = 13500 [15:32:21]sum+1 = 13501 [15:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 53 20.06.2024 15:32 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34443 ФПД: 69586637210279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153223&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34443&fm=69586637210279&tin=02508201610067®Number=0000000000092786&sum=13500 0 [15:32:22]StoreToDocumentArchive [15:32:22]shift 325 fd 34443 [15:32:22]save to /storage/0325/doc_00034443 [15:32:22]save last doc name /storage/0325/doc_00034443 to /storage/kkm_last_doc_name [15:32:22]save OK [15:32:22]Clear old archive folders... [15:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=278 [15:32:22]tlvbuf is 00222210 [15:32:22]SAM_PROTO_ClearQueue [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 09 00 00 [15:32:22]Write to MH i2c: E2 08 00 23 10 80 09 00 00 00 00 00 00 A5 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_ClearQueue done [15:32:22]KKMCreateOFDPacket [15:32:22]OFDProtocolAddRootSTLVToBuf [15:32:22]FM_MakeSignedData [15:32:22]FM_MakeSignedData [15:32:22]SAM_PROTO_SignData [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 01 02 [15:32:22]Write to MH i2c: E2 08 00 24 10 80 0D 01 02 00 00 00 00 AD [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]wFMCommunicate request_size=255 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 87 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 [15:32:22]Write to MH i2c: E2 02 01 25 10 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 87 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 00 00 A5 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]wFMCommunicate request_size=37 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 86 00 00 35 04 06 00 3F 49 E6 CA C2 A7 [15:32:22]Write to MH i2c: E2 28 00 26 10 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 86 00 00 35 04 06 00 3F 49 E6 CA C2 A7 00 00 BB [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [15:32:22]RAPDU: 90 00 [15:32:22]wFMCommunicate OK [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 0D 03 02 [15:32:22]Write to MH i2c: E2 08 00 27 10 80 0D 03 02 00 00 00 00 B2 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0B 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0B 00 27 10 00 86 4B 0E 1D 47 21 BE 00 90 00 D5 [15:32:22]RAPDU: 86 4B 0E 1D 47 21 BE 00 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_SignData done [15:32:22]FM_MakeSignedData done [15:32:22]CreateOFDProtocolMessage [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 11 00 00 [15:32:22]Write to MH i2c: E2 08 00 28 10 80 11 00 00 00 00 00 00 B2 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 28 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 07 [15:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:32:22]wFMCommunicate OK [15:32:22]CreateOFDProtocolMessage done [15:32:22]OFDSenderStorePacket 34443 [15:32:22]StoreOFDPacket docnum=34443 [15:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 A8 82 22 01 7D 61 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 87 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 86 00 00 35 04 06 00 3F 49 E6 CA C2 A7 86 4B 0E 1D 47 21 BE 00 [15:32:22]CheckFolder [15:32:22]dirname=/storage/ofd_packets [15:32:22]CheckFolder done [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00034443 [15:32:22]NVStorageSaveData ofd_packets/00034443 [15:32:22]File name is /storage/ofd_packets/00034443 [15:32:22]Write 328 bytes [15:32:22]NVStorageSaveData done [15:32:22]OFDSenderStorePacket done [15:32:22]KKMCreateOFDPacket done [15:32:22]NVStorageSaveData kkm_last_timestamp [15:32:22]File name is /storage/kkm_last_timestamp [15:32:22]Write 4 bytes [15:32:22]NVStorageSaveData done [15:32:22]ExternCall_PrintAddStr [15:32:22]wPrintStart [15:32:22]Write to MH i2c: 01 00 00 29 10 39 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [15:32:22]RasterBufferAndPrint [15:32:22]line Счет N : (3)184212 [15:32:22]line ИНН: 02508201610067 [15:32:22]line Контрольно-Кассовый Чек [15:32:22]line ПРОДАЖА [15:32:22]line Товар: 48741224 [15:32:22]line Сигареты Winston Super Slims Blue [15:32:22]line 1.000 * 135.00 [15:32:22]line = 135.00 [15:32:22]line НДС 12% НСП 1% [15:32:22]line > о реализуемом товаре [15:32:22]line ИТОГО: 135.00 [15:32:22]line НСП 1% : 1.19 [15:32:22]line НДС 12% : 14.34 [15:32:22]line Наличными: 135.00 [15:32:22]line Безнал.: 0.00 [15:32:22]line Место: АЗС № 120 "Партнер Нефть" [15:32:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:32:22]line СНО: Общий режим [15:32:22]line Чек 53 20.06.2024 15:32 [15:32:23]line Смена: 325 ФФД: 1.0 [15:32:23]line ЗНМ: 0300000172 [15:32:23]line РНМ: 0000000000092786 [15:32:23]line Версия ККМ: 001 [15:32:23]line ФМ: 0000000000875095 [15:32:23]line ФД: 34443 [15:32:23]line ФПД: 69586637210279 [15:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153223&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34443&fm=69586637210279&tin=02508201610067®Number=0000000000092786&sum=13500 [15:32:23]line 0 [15:32:23]OFD Sender: Processing packet 34443 [packets to send 8, broken 7] [15:32:23]ProducePacketName [15:32:23]name=ofd_packets/00034443 [15:32:23]OFD Sender: To server: pG, [15:32:23]CommunicateWithHost lk.salyk.kg:30040 [15:32:23]ConnectInit lk.salyk.kg [15:32:23]written 0, free lines is 4095 [15:32:23]Connected sock=10 [15:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 A8 82 22 01 7D 61 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 87 4B 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 86 00 00 35 04 06 00 3F 49 E6 CA C2 A7 86 4B 0E 1D 47 21 BE 00 [15:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DA 13 47 00 6C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 86 00 00 F4 03 04 00 50 F2 73 66 B6 04 01 00 00 6D B5 43 B7 47 59 33 3B [15:32:23]CommunicateWithHost err = 0 [15:32:23]CheckOFDResponse [15:32:23]1017 (14) - 77093643461234 [15:32:23]1041 (16) - 0000000000875095 [15:32:23]1040 (4) - 34443 [15:32:23]1012 (4) - 20.06.2024 09:11 [15:32:23]1206 (1) - 0 [15:32:23]OFD Sender: Remove packet 34443 [15:32:23]ProducePacketName [15:32:23]name=ofd_packets/00034443 [15:32:23]NVStorageDeleteData [15:32:23]Write to MH i2c: 01 00 00 52 10 62 [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 07 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: 01 07 00 52 10 00 00 00 00 00 E6 0C 5B [15:32:23]RasterBufferAndPrint [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]line [15:32:23]written 0, free lines is 3307 [15:32:23]MH_Cut [15:32:23]Write to MH i2c: D1 01 00 59 10 01 3B [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 01 00 [15:32:23]MH_I2C_Read... [15:32:23]Read from MH i2c: D1 01 00 59 10 00 3A [15:32:23]Write to MH i2c: 01 00 00 5A 10 6A [15:32:23]Write i2c OK [15:32:23]MH_I2C_Read... [15:32:24]OFD Sender: No OFD packet to send [15:32:24]*** Cut start [15:32:24]*** Partial cut [15:32:24]*** CUTSNS_PIN = 1 [15:32:24]*** CUTSNS_PIN = 0 [15:32:24]*** Brake cut motor [15:32:24]Read from MH i2c: 01 [15:32:24]MH_I2C_Read... [15:32:24]*** Stop cut motor [15:32:24]*** Cut end [15:32:24]Read from MH i2c: 01 07 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [15:32:24]process_action close_receipt done [15:32:24]requested_data is exist [15:32:24]produce_requested_data [15:32:24]requested_item fm.sn is exist - process it [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 11 00 00 [15:32:24]Write to MH i2c: E2 08 00 5B 10 80 11 00 00 00 00 00 00 E5 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 5B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3A [15:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:32:24]wFMCommunicate OK [15:32:24]requested_item fd.num is exist - process it [15:32:24]SAM_PROTO_GetFieldsCounters [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 00 00 [15:32:24]Write to MH i2c: E2 08 00 5C 10 80 13 00 00 00 00 00 00 E8 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 62 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 62 00 5C 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8B 86 00 00 0E 04 04 00 45 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 08 [15:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8B 86 00 00 0E 04 04 00 45 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 [15:32:25]wFMCommunicate OK [15:32:25]SAM_PROTO_GetFieldsCounters done [15:32:25]requested_item shift.num is exist - process it [15:32:25]requested_item shift.opened is exist - process it [15:32:25]req_shift_opened [15:32:25]FM_GetShiftState [15:32:25]SAM_PROTO_GetShiftState [15:32:25]wFMCommunicate request_size=4 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 13 01 00 [15:32:25]Write to MH i2c: E2 08 00 5D 10 80 13 01 00 00 00 00 00 EA [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 0E 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 0E 00 5D 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 02 [15:32:25]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:32:25]wFMCommunicate OK [15:32:25]SAM_PROTO_GetShiftState done [15:32:25]FM_GetShiftState done [15:32:25]req_shift_opened done [15:32:25]requested_item shift.open_date is exist - process it [15:32:25]req_shift_open_date [15:32:25]req_shift_open_date done [15:32:25]produce_requested_data done [15:32:25]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34443,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:32:25]process_action_free close_receipt [15:32:25]json_value_free [15:32:25]json_value_free done [15:32:25]process_json_proto returns [15:32:25]Send response to host [15:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34443,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:32:25]free response buf [15:32:25]execute_script done [15:32:25]execute_script returns [15:32:25]free content buf [15:32:25]Sock 8.Close socket [15:32:25]Sock 8.Thread stoped [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:41]accept exits with 9 [15:36:41]New connection [15:36:41]New thread 3066510692 created [15:36:41]Thread 3066654052 joined [15:36:41]Waiting for new connection... [15:36:41] Sock 9.Parse request [15:36:41]Sock 9.Check first char [15:36:41]Sock 9.First char is OK [15:36:41]request: POST /json_proto HTTP/1.0 [15:36:41]Method: POST [15:36:41]URL: /json_proto [15:36:41]Method is POST - this is cgi request [15:36:41]url: /json_proto [15:36:41]query_string will be loaded in cgi processing [15:36:41]execute_cgi json_proto POST (null) [15:36:41]execute_cgi path=json_proto method=POST [15:36:41]POST find Content-Length [15:36:41]Host: 172.17.38.134:8080 [15:36:41]Content-Length: 644 [15:36:41]Content-Type: application/json [15:36:41] [15:36:41]POST finish read [15:36:41]Found Content-Length = 644 [15:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184213", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:41]execute_script... [15:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184213", "tax_sys" : 0, "items" : [ { "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:41]POST & json_proto [15:36:41]process_json_proto [15:36:41]json parsed OK: [15:36:41]protocol is kg_v1.0 [15:36:41]action value=close_receipt [15:36:41]process_action close_receipt [15:36:41]cmd_close_receipt [15:36:41]MH_GetDate [15:36:41]Write to MH i2c: F0 00 00 5E 10 5D [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 5E 10 00 8B 4C 74 66 13 9C 7C 64 A6 [15:36:41]GetLastDocTimeStamp 1718897543 [15:36:41]current date 1718897803 [15:36:41]FM_GetShiftState [15:36:41]SAM_PROTO_GetShiftState [15:36:41]wFMCommunicate request_size=4 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 13 01 00 [15:36:41]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 04 [15:36:41]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:36:41]wFMCommunicate OK [15:36:41]SAM_PROTO_GetShiftState done [15:36:41]FM_GetShiftState done [15:36:41]opened in 1718843069 [15:36:41]opened+sec_in_day 1718929469 [15:36:41]quantity*price = 21000 [15:36:41]sum+1 = 21001 [15:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 54 20.06.2024 15:36 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34444 ФПД: 155428071857748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153643&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34444&fm=155428071857748&tin=02508201610067®Number=0000000000092786&sum=21000 0 [15:36:42]StoreToDocumentArchive [15:36:42]shift 325 fd 34444 [15:36:42]save to /storage/0325/doc_00034444 [15:36:42]save last doc name /storage/0325/doc_00034444 to /storage/kkm_last_doc_name [15:36:42]save OK [15:36:42]Clear old archive folders... [15:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:36:42]tlvbuf is 00208150 [15:36:42]SAM_PROTO_ClearQueue [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 09 00 00 [15:36:42]Write to MH i2c: E2 08 00 6C 10 80 09 00 00 00 00 00 00 EE [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 6C 10 00 90 00 F0 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_ClearQueue done [15:36:42]KKMCreateOFDPacket [15:36:42]OFDProtocolAddRootSTLVToBuf [15:36:42]FM_MakeSignedData [15:36:42]FM_MakeSignedData [15:36:42]SAM_PROTO_SignData [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 01 02 [15:36:42]Write to MH i2c: E2 08 00 6D 10 80 0D 01 02 00 00 00 00 F6 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 6D 10 00 90 00 F1 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=255 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8B 4C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [15:36:42]Write to MH i2c: E2 02 01 6E 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8B 4C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 18 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=39 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 86 00 00 35 04 06 00 8D 5C 6B 02 DE 54 [15:36:42]Write to MH i2c: E2 2A 00 6F 10 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 86 00 00 35 04 06 00 8D 5C 6B 02 DE 54 00 00 50 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 03 02 [15:36:42]Write to MH i2c: E2 08 00 70 10 80 0D 03 02 00 00 00 00 FB [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0B 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0B 00 70 10 00 77 49 5A 03 7E EF C6 98 90 00 E4 [15:36:42]RAPDU: 77 49 5A 03 7E EF C6 98 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_SignData done [15:36:42]FM_MakeSignedData done [15:36:42]CreateOFDProtocolMessage [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 11 00 00 [15:36:42]Write to MH i2c: E2 08 00 71 10 80 11 00 00 00 00 00 00 FB [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 71 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 50 [15:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:36:42]wFMCommunicate OK [15:36:42]CreateOFDProtocolMessage done [15:36:42]OFDSenderStorePacket 34444 [15:36:42]StoreOFDPacket docnum=34444 [15:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 43 36 24 01 76 AE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8B 4C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 86 00 00 35 04 06 00 8D 5C 6B 02 DE 54 77 49 5A 03 7E EF C6 98 [15:36:42]CheckFolder [15:36:42]dirname=/storage/ofd_packets [15:36:42]CheckFolder done [15:36:42]ProducePacketName [15:36:42]name=ofd_packets/00034444 [15:36:42]NVStorageSaveData ofd_packets/00034444 [15:36:42]File name is /storage/ofd_packets/00034444 [15:36:42]Write 330 bytes [15:36:42]NVStorageSaveData done [15:36:42]OFDSenderStorePacket done [15:36:42]KKMCreateOFDPacket done [15:36:42]NVStorageSaveData kkm_last_timestamp [15:36:42]File name is /storage/kkm_last_timestamp [15:36:42]Write 4 bytes [15:36:42]NVStorageSaveData done [15:36:42]ExternCall_PrintAddStr [15:36:42]wPrintStart [15:36:42]Write to MH i2c: 01 00 00 72 10 82 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 FF 0F 97 [15:36:42]RasterBufferAndPrint [15:36:42]line Счет N : (3)184213 [15:36:42]line ИНН: 02508201610067 [15:36:42]line Контрольно-Кассовый Чек [15:36:42]line ПРОДАЖА [15:36:42]line Товар: 2000036200014 [15:36:42]line Кофе Эспрессо (GABB TRADE) [15:36:42]line 2.000 * 105.00 [15:36:42]line = 210.00 [15:36:42]line НДС 12% НСП 1% [15:36:42]line > о реализуемом товаре [15:36:42]line ИТОГО: 210.00 [15:36:42]line НСП 1% : 1.86 [15:36:42]line НДС 12% : 22.30 [15:36:42]line Наличными: 210.00 [15:36:42]line Безнал.: 0.00 [15:36:42]line Место: АЗС № 120 "Партнер Нефть" [15:36:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:36:42]line СНО: Общий режим [15:36:42]line Чек 54 20.06.2024 15:36 [15:36:42]line Смена: 325 ФФД: 1.0 [15:36:42]line ЗНМ: 0300000172 [15:36:42]line РНМ: 0000000000092786 [15:36:42]line Версия ККМ: 001 [15:36:42]line ФМ: 0000000000875095 [15:36:42]line ФД: 34444 [15:36:42]line ФПД: 155428071857748 [15:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153643&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34444&fm=155428071857748&tin=02508201610067®Number=0000000000092786&sum=21000 [15:36:43]line 0 [15:36:43]OFD Sender: Processing packet 34444 [packets to send 8, broken 7] [15:36:43]ProducePacketName [15:36:43]name=ofd_packets/00034444 [15:36:43]OFD Sender: To server: pG, [15:36:43]CommunicateWithHost lk.salyk.kg:30040 [15:36:43]ConnectInit lk.salyk.kg [15:36:43]written 0, free lines is 4095 [15:36:43]Connected sock=10 [15:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 43 36 24 01 76 AE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8B 4C 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 86 00 00 35 04 06 00 8D 5C 6B 02 DE 54 77 49 5A 03 7E EF C6 98 [15:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 83 38 47 00 5C 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 86 00 00 F4 03 04 00 54 F3 73 66 B6 04 01 00 00 09 B5 21 83 89 06 3B C8 [15:36:43]CommunicateWithHost err = 0 [15:36:43]CheckOFDResponse [15:36:43]1017 (14) - 77093643461234 [15:36:43]1041 (16) - 0000000000875095 [15:36:43]1040 (4) - 34444 [15:36:43]1012 (4) - 20.06.2024 09:16 [15:36:43]1206 (1) - 0 [15:36:43]OFD Sender: Remove packet 34444 [15:36:43]ProducePacketName [15:36:43]name=ofd_packets/00034444 [15:36:43]NVStorageDeleteData [15:36:43]Write to MH i2c: 01 00 00 9A 10 AA [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 9A 10 00 00 00 00 00 10 0D CE [15:36:43]RasterBufferAndPrint [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]written 0, free lines is 3350 [15:36:43]MH_Cut [15:36:43]Write to MH i2c: D1 01 00 A1 10 01 83 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 01 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 01 00 A1 10 00 82 [15:36:43]Write to MH i2c: 01 00 00 A2 10 B2 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:44]OFD Sender: No OFD packet to send [15:36:44]*** Cut start [15:36:44]*** Partial cut [15:36:44]*** CUTSNS_PIN = 1 [15:36:44]*** CUTSNS_PIN = 0 [15:36:44]*** Brake cut motor [15:36:44]Read from MH i2c: 01 [15:36:44]MH_I2C_Read... [15:36:44]*** Stop cut motor [15:36:44]*** Cut end [15:36:44]Read from MH i2c: 01 07 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 A2 10 00 00 00 00 00 FF 0F C7 [15:36:44]process_action close_receipt done [15:36:44]requested_data is exist [15:36:44]produce_requested_data [15:36:44]requested_item fm.sn is exist - process it [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 11 00 00 [15:36:44]Write to MH i2c: E2 08 00 A3 10 80 11 00 00 00 00 00 00 2D [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 A3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 82 [15:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:36:44]wFMCommunicate OK [15:36:44]requested_item fd.num is exist - process it [15:36:44]SAM_PROTO_GetFieldsCounters [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 13 00 00 [15:36:44]Write to MH i2c: E2 08 00 A4 10 80 13 00 00 00 00 00 00 30 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 A4 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8C 86 00 00 0E 04 04 00 45 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 54 [15:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8C 86 00 00 0E 04 04 00 45 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 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetFieldsCounters done [15:36:45]requested_item shift.num is exist - process it [15:36:45]requested_item shift.opened is exist - process it [15:36:45]req_shift_opened [15:36:45]FM_GetShiftState [15:36:45]SAM_PROTO_GetShiftState [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 13 01 00 [15:36:45]Write to MH i2c: E2 08 00 A5 10 80 13 01 00 00 00 00 00 32 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 A5 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 4A [15:36:45]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetShiftState done [15:36:45]FM_GetShiftState done [15:36:45]req_shift_opened done [15:36:45]requested_item shift.open_date is exist - process it [15:36:45]req_shift_open_date [15:36:45]req_shift_open_date done [15:36:45]produce_requested_data done [15:36:45]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34444,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:36:45]process_action_free close_receipt [15:36:45]json_value_free [15:36:45]json_value_free done [15:36:45]process_json_proto returns [15:36:45]Send response to host [15:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34444,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:36:45]free response buf [15:36:45]execute_script done [15:36:45]execute_script returns [15:36:45]free content buf [15:36:45]Sock 9.Close socket [15:36:45]Sock 9.Thread stoped [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]accept exits with 8 [15:57:29]New connection [15:57:29]New thread 3066654052 created [15:57:29]Thread 3066510692 joined [15:57:29]Waiting for new connection... [15:57:29] Sock 8.Parse request [15:57:29]Sock 8.Check first char [15:57:29]Sock 8.First char is OK [15:57:29]request: POST /json_proto HTTP/1.0 [15:57:29]Method: POST [15:57:29]URL: /json_proto [15:57:29]Method is POST - this is cgi request [15:57:29]url: /json_proto [15:57:29]query_string will be loaded in cgi processing [15:57:29]execute_cgi json_proto POST (null) [15:57:29]execute_cgi path=json_proto method=POST [15:57:29]POST find Content-Length [15:57:29]Host: 172.17.38.134:8080 [15:57:29]Content-Length: 1212 [15:57:29]Content-Type: application/json [15:57:29] [15:57:29]POST finish read [15:57:29]Found Content-Length = 1212 [15:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184214", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:29]execute_script... [15:57:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184214", "tax_sys" : 0, "items" : [ { "code": "4600338000183", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E \u043E\u0441\u0432\u0435\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:29]POST & json_proto [15:57:29]process_json_proto [15:57:29]json parsed OK: [15:57:29]protocol is kg_v1.0 [15:57:29]action value=close_receipt [15:57:29]process_action close_receipt [15:57:29]cmd_close_receipt [15:57:29]MH_GetDate [15:57:29]Write to MH i2c: F0 00 00 A6 10 A5 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: F0 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: F0 09 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: F0 09 00 A6 10 00 6C 51 74 66 13 9C 7C 64 D4 [15:57:29]GetLastDocTimeStamp 1718897803 [15:57:29]current date 1718899052 [15:57:29]FM_GetShiftState [15:57:29]SAM_PROTO_GetShiftState [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 01 00 [15:57:29]Write to MH i2c: E2 08 00 A7 10 80 13 01 00 00 00 00 00 34 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 0E 00 A7 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 4C [15:57:29]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetShiftState done [15:57:29]FM_GetShiftState done [15:57:29]opened in 1718843069 [15:57:29]opened+sec_in_day 1718929469 [15:57:29]quantity*price = 6500 [15:57:29]sum+1 = 6501 [15:57:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216097162 Маршмеллоу HARIBO Party 70гр (24) 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.69 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 20.06.2024 15:57 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34445 ФПД: 155531188264664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155732&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34445&fm=155531188264664&tin=02508201610067®Number=0000000000092786&sum=30500 0 [15:57:30]StoreToDocumentArchive [15:57:30]shift 325 fd 34445 [15:57:30]save to /storage/0325/doc_00034445 [15:57:30]save last doc name /storage/0325/doc_00034445 to /storage/kkm_last_doc_name [15:57:30]save OK [15:57:30]Clear old archive folders... [15:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=518 [15:57:30]tlvbuf is 00228440 [15:57:30]SAM_PROTO_ClearQueue [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 09 00 00 [15:57:30]Write to MH i2c: E2 08 00 B4 10 80 09 00 00 00 00 00 00 36 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 03 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 03 00 B4 10 00 90 00 38 [15:57:30]RAPDU: 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_ClearQueue done [15:57:30]KKMCreateOFDPacket [15:57:30]OFDProtocolAddRootSTLVToBuf [15:57:30]FM_MakeSignedData [15:57:30]FM_MakeSignedData [15:57:30]SAM_PROTO_SignData [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 0D 01 02 [15:57:30]Write to MH i2c: E2 08 00 B5 10 80 0D 01 02 00 00 00 00 3E [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 03 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [15:57:30]RAPDU: 90 00 [15:57:30]wFMCommunicate OK [15:57:30]wFMCommunicate request_size=255 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [15:57:31]Write to MH i2c: E2 02 01 B6 10 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 38 [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:31]Read from MH i2c: E2 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [15:57:31]RAPDU: 90 00 [15:57:31]wFMCommunicate OK [15:57:31]wFMCommunicate request_size=255 [15:57:31]MH_SAM_APDU [15:57:31]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 6C 51 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:57:31]Write to MH i2c: E2 02 01 B7 10 80 0D 02 02 FA 00 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 6C 51 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 E2 [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:31]Read from MH i2c: E2 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [15:57:31]RAPDU: 90 00 [15:57:31]wFMCommunicate OK [15:57:31]wFMCommunicate request_size=27 [15:57:31]MH_SAM_APDU [15:57:31]CAPDU: 80 0D 02 02 16 35 30 39 35 10 04 04 00 8D 86 00 00 35 04 06 00 8D 74 6D 3A 5E D8 [15:57:31]Write to MH i2c: E2 1E 00 B8 10 80 0D 02 02 16 00 35 30 39 35 10 04 04 00 8D 86 00 00 35 04 06 00 8D 74 6D 3A 5E D8 00 00 89 [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:31]Read from MH i2c: E2 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [15:57:31]RAPDU: 90 00 [15:57:31]wFMCommunicate OK [15:57:31]wFMCommunicate request_size=4 [15:57:31]MH_SAM_APDU [15:57:31]CAPDU: 80 0D 03 02 [15:57:31]Write to MH i2c: E2 08 00 B9 10 80 0D 03 02 00 00 00 00 44 [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:31]Read from MH i2c: E2 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 0B 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 0B 00 B9 10 00 EF 56 44 78 E1 E0 EE FB 90 00 F0 [15:57:31]RAPDU: EF 56 44 78 E1 E0 EE FB 90 00 [15:57:31]wFMCommunicate OK [15:57:31]SAM_PROTO_SignData done [15:57:31]FM_MakeSignedData done [15:57:31]CreateOFDProtocolMessage [15:57:31]wFMCommunicate request_size=4 [15:57:31]MH_SAM_APDU [15:57:31]CAPDU: 80 11 00 00 [15:57:31]Write to MH i2c: E2 08 00 BA 10 80 11 00 00 00 00 00 00 44 [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:31]Read from MH i2c: E2 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 17 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: E2 17 00 BA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 99 [15:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:57:31]wFMCommunicate OK [15:57:31]CreateOFDProtocolMessage done [15:57:31]OFDSenderStorePacket 34445 [15:57:31]StoreOFDPacket docnum=34445 [15:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1A 02 00 00 E0 B8 12 02 67 6E 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 6C 51 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 86 00 00 35 04 06 00 8D 74 6D 3A 5E D8 EF 56 44 78 E1 E0 EE FB [15:57:31]CheckFolder [15:57:31]dirname=/storage/ofd_packets [15:57:31]CheckFolder done [15:57:31]ProducePacketName [15:57:31]name=ofd_packets/00034445 [15:57:31]NVStorageSaveData ofd_packets/00034445 [15:57:31]File name is /storage/ofd_packets/00034445 [15:57:31]Write 568 bytes [15:57:31]NVStorageSaveData done [15:57:31]OFDSenderStorePacket done [15:57:31]KKMCreateOFDPacket done [15:57:31]NVStorageSaveData kkm_last_timestamp [15:57:31]File name is /storage/kkm_last_timestamp [15:57:31]Write 4 bytes [15:57:31]NVStorageSaveData done [15:57:31]ExternCall_PrintAddStr [15:57:31]wPrintStart [15:57:31]Write to MH i2c: 01 00 00 BB 10 CB [15:57:31]Write i2c OK [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: 01 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: 01 07 00 [15:57:31]MH_I2C_Read... [15:57:31]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 FF 0F E0 [15:57:31]RasterBufferAndPrint [15:57:31]line Счет N : (3)184214 [15:57:31]line ИНН: 02508201610067 [15:57:31]line Контрольно-Кассовый Чек [15:57:31]line ПРОДАЖА [15:57:31]line Товар: 4600338000183 [15:57:31]line Сок Фруто НЯНЯ яблоко освет 0,2л [15:57:31]line 1.000 * 65.00 [15:57:31]line = 65.00 [15:57:31]line НДС 12% НСП 1% [15:57:31]line > о реализуемом товаре [15:57:31]line Товар: 8691216097162 [15:57:31]line Маршмеллоу HARIBO Party 70гр (24) [15:57:31]line 1.000 * 100.00 [15:57:31]line = 100.00 [15:57:31]line НДС 12% НСП 1% [15:57:31]line > о реализуемом товаре [15:57:31]line Товар: 48747059 [15:57:31]line Сигареты Winston Legend Blue [15:57:31]line 1.000 * 140.00 [15:57:31]line = 140.00 [15:57:31]line НДС 12% НСП 1% [15:57:31]line > о реализуемом товаре [15:57:31]line ИТОГО: 305.00 [15:57:31]line НСП 1% : 2.69 [15:57:31]line НДС 12% : 32.39 [15:57:31]line Наличными: 305.00 [15:57:31]line Безнал.: 0.00 [15:57:31]line Место: АЗС № 120 "Партнер Нефть" [15:57:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:57:31]line СНО: Общий режим [15:57:31]line Чек 55 20.06.2024 15:57 [15:57:31]line Смена: 325 ФФД: 1.0 [15:57:31]line ЗНМ: 0300000172 [15:57:31]line РНМ: 0000000000092786 [15:57:31]line Версия ККМ: 001 [15:57:31]line ФМ: 0000000000875095 [15:57:31]line ФД: 34445 [15:57:31]line ФПД: 155531188264664 [15:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155732&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34445&fm=155531188264664&tin=02508201610067®Number=0000000000092786&sum=30500 [15:57:31]line 0 [15:57:31]written 0, free lines is 4095 [15:57:31]OFD Sender: Processing packet 34445 [packets to send 8, broken 7] [15:57:31]ProducePacketName [15:57:31]name=ofd_packets/00034445 [15:57:31]OFD Sender: To server: pG, [15:57:31]CommunicateWithHost lk.salyk.kg:30040 [15:57:31]ConnectInit lk.salyk.kg [15:57:32]Connected sock=10 [15:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1A 02 00 00 E0 B8 12 02 67 6E 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 30 31 38 33 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 BE D1 81 D0 B2 D0 B5 D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 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 6C 51 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 86 00 00 35 04 06 00 8D 74 6D 3A 5E D8 EF 56 44 78 E1 E0 EE FB [15:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A4 EA 47 00 AB 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 35 30 39 35 10 04 04 00 8D 86 00 00 F4 03 04 00 35 F8 73 66 B6 04 01 00 00 62 FC 26 47 73 F2 33 F1 [15:57:32]CommunicateWithHost err = 0 [15:57:32]CheckOFDResponse [15:57:32]1017 (14) - 77093643461234 [15:57:32]1041 (16) - 0000000000875095 [15:57:32]1040 (4) - 34445 [15:57:32]1012 (4) - 20.06.2024 09:36 [15:57:32]1206 (1) - 0 [15:57:32]OFD Sender: Remove packet 34445 [15:57:32]ProducePacketName [15:57:32]name=ofd_packets/00034445 [15:57:32]NVStorageDeleteData [15:57:32]Write to MH i2c: 01 00 00 F2 10 02 [15:57:32]Write i2c OK [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: 01 [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: 01 07 00 [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 17 0C 2C [15:57:32]RasterBufferAndPrint [15:57:32]line [15:57:32]line [15:57:32]line [15:57:32]line [15:57:32]line [15:57:32]written 0, free lines is 3101 [15:57:32]MH_Cut [15:57:32]Write to MH i2c: D1 01 00 F9 10 01 DB [15:57:32]Write i2c OK [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: D1 [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: D1 01 00 [15:57:32]MH_I2C_Read... [15:57:32]Read from MH i2c: D1 01 00 F9 10 00 DA [15:57:32]Write to MH i2c: 01 00 00 FA 10 0A [15:57:32]Write i2c OK [15:57:32]MH_I2C_Read... [15:57:32]OFD Sender: No OFD packet to send [15:57:33]*** Cut start [15:57:33]*** Partial cut [15:57:33]*** CUTSNS_PIN = 1 [15:57:33]*** CUTSNS_PIN = 0 [15:57:33]*** Brake cut motor [15:57:33]Read from MH i2c: 01 [15:57:33]MH_I2C_Read... [15:57:33]*** Stop cut motor [15:57:33]*** Cut end [15:57:33]Read from MH i2c: 01 07 00 [15:57:33]MH_I2C_Read... [15:57:33]Read from MH i2c: 01 07 00 FA 10 00 00 00 00 00 FF 0F 1F [15:57:33]process_action close_receipt done [15:57:33]requested_data is exist [15:57:34]produce_requested_data [15:57:34]requested_item fm.sn is exist - process it [15:57:34]wFMCommunicate request_size=4 [15:57:34]MH_SAM_APDU [15:57:34]CAPDU: 80 11 00 00 [15:57:34]Write to MH i2c: E2 08 00 FB 10 80 11 00 00 00 00 00 00 85 [15:57:34]Write i2c OK [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 [15:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 17 00 [15:57:34]MH_I2C_Read... [15:57:34]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 35 30 39 35 90 00 DA [15:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:57:34]wFMCommunicate OK [15:57:34]requested_item fd.num is exist - process it [15:57:34]SAM_PROTO_GetFieldsCounters [15:57:34]wFMCommunicate request_size=4 [15:57:34]MH_SAM_APDU [15:57:34]CAPDU: 80 13 00 00 [15:57:34]Write to MH i2c: E2 08 00 FC 10 80 13 00 00 00 00 00 00 88 [15:57:34]Write i2c OK [15:57:34]MH_I2C_Read... [15:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:34]Read from MH i2c: E2 [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 62 00 [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 62 00 FC 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8D 86 00 00 0E 04 04 00 45 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 B0 [15:57: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8D 86 00 00 0E 04 04 00 45 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 [15:57:34]wFMCommunicate OK [15:57:34]SAM_PROTO_GetFieldsCounters done [15:57:34]requested_item shift.num is exist - process it [15:57:34]requested_item shift.opened is exist - process it [15:57:34]req_shift_opened [15:57:34]FM_GetShiftState [15:57:34]SAM_PROTO_GetShiftState [15:57:34]wFMCommunicate request_size=4 [15:57:34]MH_SAM_APDU [15:57:34]CAPDU: 80 13 01 00 [15:57:34]Write to MH i2c: E2 08 00 FD 10 80 13 01 00 00 00 00 00 8A [15:57:34]Write i2c OK [15:57:34]MH_I2C_Read... [15:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:34]Read from MH i2c: E2 [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 0E 00 [15:57:34]MH_I2C_Read... [15:57:34]Read from MH i2c: E2 0E 00 FD 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A2 [15:57:34]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [15:57:34]wFMCommunicate OK [15:57:34]SAM_PROTO_GetShiftState done [15:57:34]FM_GetShiftState done [15:57:34]req_shift_opened done [15:57:34]requested_item shift.open_date is exist - process it [15:57:34]req_shift_open_date [15:57:34]req_shift_open_date done [15:57:34]produce_requested_data done [15:57:34]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34445,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [15:57:34]process_action_free close_receipt [15:57:34]json_value_free [15:57:34]json_value_free done [15:57:34]process_json_proto returns [15:57:34]Send response to host [15:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34445,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [15:57:34]free response buf [15:57:34]execute_script done [15:57:34]execute_script returns [15:57:34]free content buf [15:57:34]Sock 8.Close socket [15:57:34]Sock 8.Thread stoped [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:30]accept exits with 9 [16:03:30]New connection [16:03:30]New thread 3066510692 created [16:03:30]Thread 3066654052 joined [16:03:30]Waiting for new connection... [16:03:30] Sock 9.Parse request [16:03:30]Sock 9.Check first char [16:03:30]Sock 9.First char is OK [16:03:30]request: POST /json_proto HTTP/1.0 [16:03:30]Method: POST [16:03:30]URL: /json_proto [16:03:30]Method is POST - this is cgi request [16:03:30]url: /json_proto [16:03:30]query_string will be loaded in cgi processing [16:03:30]execute_cgi json_proto POST (null) [16:03:30]execute_cgi path=json_proto method=POST [16:03:30]POST find Content-Length [16:03:30]Host: 172.17.38.134:8080 [16:03:30]Content-Length: 639 [16:03:30]Content-Type: application/json [16:03:30] [16:03:30]POST finish read [16:03:30]Found Content-Length = 639 [16:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184215", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:30]execute_script... [16:03:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184215", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:30]POST & json_proto [16:03:30]process_json_proto [16:03:30]json parsed OK: [16:03:30]protocol is kg_v1.0 [16:03:30]action value=close_receipt [16:03:30]process_action close_receipt [16:03:30]cmd_close_receipt [16:03:30]MH_GetDate [16:03:30]Write to MH i2c: F0 00 00 FE 10 FD [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 FE 10 00 D4 52 74 66 13 9C 7C 64 95 [16:03:30]GetLastDocTimeStamp 1718899052 [16:03:30]current date 1718899412 [16:03:30]FM_GetShiftState [16:03:30]SAM_PROTO_GetShiftState [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 13 01 00 [16:03:30]Write to MH i2c: E2 08 00 FF 10 80 13 01 00 00 00 00 00 8C [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 FF 10 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A4 [16:03:30]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_GetShiftState done [16:03:30]FM_GetShiftState done [16:03:30]opened in 1718843069 [16:03:30]opened+sec_in_day 1718929469 [16:03:30]quantity*price = 4000 [16:03:30]sum+1 = 4001 [16:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 20.06.2024 16:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34446 ФПД: 107502776917724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160332&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34446&fm=107502776917724&tin=02508201610067®Number=0000000000092786&sum=4000 0 [16:03:31]StoreToDocumentArchive [16:03:31]shift 325 fd 34446 [16:03:31]save to /storage/0325/doc_00034446 [16:03:31]save last doc name /storage/0325/doc_00034446 to /storage/kkm_last_doc_name [16:03:31]save OK [16:03:31]Clear old archive folders... [16:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:03:31]tlvbuf is 0021A790 [16:03:31]SAM_PROTO_ClearQueue [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 09 00 00 [16:03:31]Write to MH i2c: E2 08 00 0C 11 80 09 00 00 00 00 00 00 8F [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_ClearQueue done [16:03:31]KKMCreateOFDPacket [16:03:31]OFDProtocolAddRootSTLVToBuf [16:03:31]FM_MakeSignedData [16:03:31]FM_MakeSignedData [16:03:31]SAM_PROTO_SignData [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 01 02 [16:03:31]Write to MH i2c: E2 08 00 0D 11 80 0D 01 02 00 00 00 00 97 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=255 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D4 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 [16:03:31]Write to MH i2c: E2 02 01 0E 11 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D4 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 00 00 98 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=37 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 86 00 00 35 04 06 00 61 C5 F0 D4 9E DC [16:03:31]Write to MH i2c: E2 28 00 0F 11 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 86 00 00 35 04 06 00 61 C5 F0 D4 9E DC 00 00 6B [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 03 02 [16:03:31]Write to MH i2c: E2 08 00 10 11 80 0D 03 02 00 00 00 00 9C [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0B 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0B 00 10 11 00 4A E5 77 A3 C7 92 C7 BF 90 00 C5 [16:03:31]RAPDU: 4A E5 77 A3 C7 92 C7 BF 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_SignData done [16:03:31]FM_MakeSignedData done [16:03:31]CreateOFDProtocolMessage [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 11 00 00 [16:03:31]Write to MH i2c: E2 08 00 11 11 80 11 00 00 00 00 00 00 9C [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 11 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F1 [16:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:03:31]wFMCommunicate OK [16:03:31]CreateOFDProtocolMessage done [16:03:31]OFDSenderStorePacket 34446 [16:03:31]StoreOFDPacket docnum=34446 [16:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 EB 7A 22 01 A2 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D4 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 86 00 00 35 04 06 00 61 C5 F0 D4 9E DC 4A E5 77 A3 C7 92 C7 BF [16:03:31]CheckFolder [16:03:31]dirname=/storage/ofd_packets [16:03:31]CheckFolder done [16:03:31]ProducePacketName [16:03:31]name=ofd_packets/00034446 [16:03:31]NVStorageSaveData ofd_packets/00034446 [16:03:31]File name is /storage/ofd_packets/00034446 [16:03:31]Write 328 bytes [16:03:31]NVStorageSaveData done [16:03:31]OFDSenderStorePacket done [16:03:31]KKMCreateOFDPacket done [16:03:31]NVStorageSaveData kkm_last_timestamp [16:03:31]File name is /storage/kkm_last_timestamp [16:03:31]Write 4 bytes [16:03:31]NVStorageSaveData done [16:03:31]ExternCall_PrintAddStr [16:03:31]wPrintStart [16:03:31]Write to MH i2c: 01 00 00 12 11 23 [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 12 11 00 00 00 00 00 FF 0F 38 [16:03:31]RasterBufferAndPrint [16:03:31]line Счет N : (3)184215 [16:03:31]line ИНН: 02508201610067 [16:03:31]line Контрольно-Кассовый Чек [16:03:31]line ПРОДАЖА [16:03:31]line Товар: 4870001157913 [16:03:31]line Вода ASU 0,5л c без газа [16:03:31]line 1.000 * 40.00 [16:03:31]line = 40.00 [16:03:31]line НДС 12% НСП 1% [16:03:31]line > о реализуемом товаре [16:03:31]line ИТОГО: 40.00 [16:03:31]line НСП 1% : 0.35 [16:03:31]line НДС 12% : 4.25 [16:03:31]line Наличными: 40.00 [16:03:31]line Безнал.: 0.00 [16:03:31]line Место: АЗС № 120 "Партнер Нефть" [16:03:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:03:31]line СНО: Общий режим [16:03:31]line Чек 56 20.06.2024 16:03 [16:03:31]line Смена: 325 ФФД: 1.0 [16:03:31]line ЗНМ: 0300000172 [16:03:31]line РНМ: 0000000000092786 [16:03:31]line Версия ККМ: 001 [16:03:31]line ФМ: 0000000000875095 [16:03:31]line ФД: 34446 [16:03:31]line ФПД: 107502776917724 [16:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160332&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34446&fm=107502776917724&tin=02508201610067®Number=0000000000092786&sum=4000 [16:03:32]line 0 [16:03:32]OFD Sender: Processing packet 34446 [packets to send 8, broken 7] [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00034446 [16:03:32]OFD Sender: To server: pG, [16:03:32]CommunicateWithHost lk.salyk.kg:30040 [16:03:32]ConnectInit lk.salyk.kg [16:03:32]written 0, free lines is 4095 [16:03:32]Connected sock=11 [16:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 EB 7A 22 01 A2 44 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D4 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 86 00 00 35 04 06 00 61 C5 F0 D4 9E DC 4A E5 77 A3 C7 92 C7 BF [16:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D4 0F 47 00 26 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 86 00 00 F4 03 04 00 9E F9 73 66 B6 04 01 00 00 37 24 33 22 98 D8 FC F7 [16:03:32]CommunicateWithHost err = 0 [16:03:32]CheckOFDResponse [16:03:32]1017 (14) - 77093643461234 [16:03:32]1041 (16) - 0000000000875095 [16:03:32]1040 (4) - 34446 [16:03:32]1012 (4) - 20.06.2024 09:42 [16:03:32]1206 (1) - 0 [16:03:32]OFD Sender: Remove packet 34446 [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00034446 [16:03:32]NVStorageDeleteData [16:03:32]Write to MH i2c: 01 00 00 3A 11 4B [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [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 3A 11 00 00 00 00 00 0E 0D 6D [16:03:32]RasterBufferAndPrint [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]written 0, free lines is 3348 [16:03:32]MH_Cut [16:03:32]Write to MH i2c: D1 01 00 41 11 01 24 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 41 11 00 23 [16:03:32]Write to MH i2c: 01 00 00 42 11 53 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]OFD Sender: No OFD packet to send [16:03:33]*** Cut start [16:03:33]*** Partial cut [16:03:33]*** CUTSNS_PIN = 1 [16:03:33]*** CUTSNS_PIN = 0 [16:03:33]*** Brake cut motor [16:03:33]Read from MH i2c: 01 [16:03:33]MH_I2C_Read... [16:03:33]*** Stop cut motor [16:03:33]*** Cut end [16:03:33]Read from MH i2c: 01 07 00 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 FF 0F 68 [16:03:33]process_action close_receipt done [16:03:33]requested_data is exist [16:03:33]produce_requested_data [16:03:33]requested_item fm.sn is exist - process it [16:03:33]wFMCommunicate request_size=4 [16:03:33]MH_SAM_APDU [16:03:33]CAPDU: 80 11 00 00 [16:03:33]Write to MH i2c: E2 08 00 43 11 80 11 00 00 00 00 00 00 CE [16:03:33]Write i2c OK [16:03:33]MH_I2C_Read... [16:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:33]Read from MH i2c: E2 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: E2 17 00 [16:03:33]MH_I2C_Read... [16:03:33]Read from MH i2c: E2 17 00 43 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 23 [16:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:03:33]wFMCommunicate OK [16:03:33]requested_item fd.num is exist - process it [16:03:33]SAM_PROTO_GetFieldsCounters [16:03:33]wFMCommunicate request_size=4 [16:03:33]MH_SAM_APDU [16:03:33]CAPDU: 80 13 00 00 [16:03:33]Write to MH i2c: E2 08 00 44 11 80 13 00 00 00 00 00 00 D1 [16:03:33]Write i2c OK [16:03:33]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 44 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8E 86 00 00 0E 04 04 00 45 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [16:03: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8E 86 00 00 0E 04 04 00 45 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 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetFieldsCounters done [16:03:34]requested_item shift.num is exist - process it [16:03:34]requested_item shift.opened is exist - process it [16:03:34]req_shift_opened [16:03:34]FM_GetShiftState [16:03:34]SAM_PROTO_GetShiftState [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 01 00 [16:03:34]Write to MH i2c: E2 08 00 45 11 80 13 01 00 00 00 00 00 D3 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 45 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EB [16:03:34]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetShiftState done [16:03:34]FM_GetShiftState done [16:03:34]req_shift_opened done [16:03:34]requested_item shift.open_date is exist - process it [16:03:34]req_shift_open_date [16:03:34]req_shift_open_date done [16:03:34]produce_requested_data done [16:03:34]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34446,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:03:34]process_action_free close_receipt [16:03:34]json_value_free [16:03:34]json_value_free done [16:03:34]process_json_proto returns [16:03:34]Send response to host [16:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34446,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:03:34]free response buf [16:03:34]execute_script done [16:03:34]execute_script returns [16:03:34]free content buf [16:03:34]Sock 9.Close socket [16:03:34]Sock 9.Thread stoped [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:04]accept exits with 8 [16:04:04]New connection [16:04:04]New thread 3066654052 created [16:04:04]Thread 3066510692 joined [16:04:04]Waiting for new connection... [16:04:04] Sock 8.Parse request [16:04:04]Sock 8.Check first char [16:04:04]Sock 8.First char is OK [16:04:04]request: POST /json_proto HTTP/1.0 [16:04:04]Method: POST [16:04:04]URL: /json_proto [16:04:04]Method is POST - this is cgi request [16:04:04]url: /json_proto [16:04:04]query_string will be loaded in cgi processing [16:04:04]execute_cgi json_proto POST (null) [16:04:04]execute_cgi path=json_proto method=POST [16:04:04]POST find Content-Length [16:04:04]Host: 172.17.38.134:8080 [16:04:04]Content-Length: 669 [16:04:04]Content-Type: application/json [16:04:04] [16:04:04]POST finish read [16:04:04]Found Content-Length = 669 [16:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184216", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:04]execute_script... [16:04: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)184216", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:04]POST & json_proto [16:04:04]process_json_proto [16:04:04]json parsed OK: [16:04:04]protocol is kg_v1.0 [16:04:04]action value=close_receipt [16:04:04]process_action close_receipt [16:04:04]cmd_close_receipt [16:04:04]MH_GetDate [16:04:04]Write to MH i2c: F0 00 00 46 11 46 [16:04:04]Write i2c OK [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: F0 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: F0 09 00 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: F0 09 00 46 11 00 F6 52 74 66 13 9C 7C 64 00 [16:04:04]GetLastDocTimeStamp 1718899412 [16:04:04]current date 1718899446 [16:04:04]FM_GetShiftState [16:04:04]SAM_PROTO_GetShiftState [16:04:04]wFMCommunicate request_size=4 [16:04:04]MH_SAM_APDU [16:04:04]CAPDU: 80 13 01 00 [16:04:04]Write to MH i2c: E2 08 00 47 11 80 13 01 00 00 00 00 00 D5 [16:04:04]Write i2c OK [16:04:04]MH_I2C_Read... [16:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:04]Read from MH i2c: E2 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: E2 0E 00 [16:04:04]MH_I2C_Read... [16:04:04]Read from MH i2c: E2 0E 00 47 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 ED [16:04:04]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:04:04]wFMCommunicate OK [16:04:04]SAM_PROTO_GetShiftState done [16:04:04]FM_GetShiftState done [16:04:04]opened in 1718843069 [16:04:04]opened+sec_in_day 1718929469 [16:04:04]quantity*price = 12000 [16:04:04]sum+1 = 12001 [16:04:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 20.06.2024 16:04 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34447 ФПД: 114601100598952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160406&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34447&fm=114601100598952&tin=02508201610067®Number=0000000000092786&sum=12000 0 [16:04:05]StoreToDocumentArchive [16:04:05]shift 325 fd 34447 [16:04:05]save to /storage/0325/doc_00034447 [16:04:05]save last doc name /storage/0325/doc_00034447 to /storage/kkm_last_doc_name [16:04:05]save OK [16:04:05]Clear old archive folders... [16:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=285 [16:04:05]tlvbuf is 002078D0 [16:04:05]SAM_PROTO_ClearQueue [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 09 00 00 [16:04:05]Write to MH i2c: E2 08 00 54 11 80 09 00 00 00 00 00 00 D7 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [16:04:05]RAPDU: 90 00 [16:04:05]wFMCommunicate OK [16:04:05]SAM_PROTO_ClearQueue done [16:04:05]KKMCreateOFDPacket [16:04:05]OFDProtocolAddRootSTLVToBuf [16:04:05]FM_MakeSignedData [16:04:05]FM_MakeSignedData [16:04:05]SAM_PROTO_SignData [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 0D 01 02 [16:04:05]Write to MH i2c: E2 08 00 55 11 80 0D 01 02 00 00 00 00 DF [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [16:04:05]RAPDU: 90 00 [16:04:05]wFMCommunicate OK [16:04:05]wFMCommunicate request_size=255 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F6 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 [16:04:05]Write to MH i2c: E2 02 01 56 11 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F6 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 00 00 E3 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [16:04:05]RAPDU: 90 00 [16:04:05]wFMCommunicate OK [16:04:05]wFMCommunicate request_size=44 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 86 00 00 35 04 06 00 68 3A A5 E4 5E A8 [16:04:05]Write to MH i2c: E2 2F 00 57 11 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 86 00 00 35 04 06 00 68 3A A5 E4 5E A8 00 00 4A [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [16:04:05]RAPDU: 90 00 [16:04:05]wFMCommunicate OK [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 0D 03 02 [16:04:05]Write to MH i2c: E2 08 00 58 11 80 0D 03 02 00 00 00 00 E4 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 0B 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 0B 00 58 11 00 4F CD C9 41 74 C0 2B 5A 90 00 C4 [16:04:05]RAPDU: 4F CD C9 41 74 C0 2B 5A 90 00 [16:04:05]wFMCommunicate OK [16:04:05]SAM_PROTO_SignData done [16:04:05]FM_MakeSignedData done [16:04:05]CreateOFDProtocolMessage [16:04:05]wFMCommunicate request_size=4 [16:04:05]MH_SAM_APDU [16:04:05]CAPDU: 80 11 00 00 [16:04:05]Write to MH i2c: E2 08 00 59 11 80 11 00 00 00 00 00 00 E4 [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:05]Read from MH i2c: E2 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 17 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: E2 17 00 59 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 39 [16:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:04:05]wFMCommunicate OK [16:04:05]CreateOFDProtocolMessage done [16:04:05]OFDSenderStorePacket 34447 [16:04:05]StoreOFDPacket docnum=34447 [16:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 31 01 00 00 F9 1C 29 01 F8 2E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F6 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 86 00 00 35 04 06 00 68 3A A5 E4 5E A8 4F CD C9 41 74 C0 2B 5A [16:04:05]CheckFolder [16:04:05]dirname=/storage/ofd_packets [16:04:05]CheckFolder done [16:04:05]ProducePacketName [16:04:05]name=ofd_packets/00034447 [16:04:05]NVStorageSaveData ofd_packets/00034447 [16:04:05]File name is /storage/ofd_packets/00034447 [16:04:05]Write 335 bytes [16:04:05]NVStorageSaveData done [16:04:05]OFDSenderStorePacket done [16:04:05]KKMCreateOFDPacket done [16:04:05]NVStorageSaveData kkm_last_timestamp [16:04:05]File name is /storage/kkm_last_timestamp [16:04:05]Write 4 bytes [16:04:05]NVStorageSaveData done [16:04:05]ExternCall_PrintAddStr [16:04:05]wPrintStart [16:04:05]Write to MH i2c: 01 00 00 5A 11 6B [16:04:05]Write i2c OK [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: 01 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: 01 07 00 [16:04:05]MH_I2C_Read... [16:04:05]Read from MH i2c: 01 07 00 5A 11 00 00 00 00 00 FF 0F 80 [16:04:05]RasterBufferAndPrint [16:04:05]line Счет N : (3)184216 [16:04:05]line ИНН: 02508201610067 [16:04:05]line Контрольно-Кассовый Чек [16:04:05]line ПРОДАЖА [16:04:05]line Товар: 5449000189318 [16:04:05]line Холодный чай Fuse лимон 1л [16:04:05]line 1.000 * 120.00 [16:04:05]line = 120.00 [16:04:05]line НДС 12% НСП 1% [16:04:05]line > о реализуемом товаре [16:04:05]line ИТОГО: 120.00 [16:04:05]line НСП 1% : 1.06 [16:04:05]line НДС 12% : 12.74 [16:04:05]line Наличными: 120.00 [16:04:05]line Безнал.: 0.00 [16:04:05]line Место: АЗС № 120 "Партнер Нефть" [16:04:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:04:05]line СНО: Общий режим [16:04:05]line Чек 57 20.06.2024 16:04 [16:04:05]line Смена: 325 ФФД: 1.0 [16:04:05]line ЗНМ: 0300000172 [16:04:05]line РНМ: 0000000000092786 [16:04:05]line Версия ККМ: 001 [16:04:05]line ФМ: 0000000000875095 [16:04:05]line ФД: 34447 [16:04:05]line ФПД: 114601100598952 [16:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160406&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34447&fm=114601100598952&tin=02508201610067®Number=0000000000092786&sum=12000 [16:04:06]line 0 [16:04:06]OFD Sender: Processing packet 34447 [packets to send 8, broken 7] [16:04:06]ProducePacketName [16:04:06]name=ofd_packets/00034447 [16:04:06]OFD Sender: To server: pG, [16:04:06]CommunicateWithHost lk.salyk.kg:30040 [16:04:06]ConnectInit lk.salyk.kg [16:04:06]written 0, free lines is 4095 [16:04:06]Connected sock=9 [16:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 31 01 00 00 F9 1C 29 01 F8 2E 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 F6 52 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 86 00 00 35 04 06 00 68 3A A5 E4 5E A8 4F CD C9 41 74 C0 2B 5A [16:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AF 90 47 00 7B 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 35 30 39 35 10 04 04 00 8F 86 00 00 F4 03 04 00 C0 F9 73 66 B6 04 01 00 00 2F EA 58 23 CC E6 24 BB [16:04:06]CommunicateWithHost err = 0 [16:04:06]CheckOFDResponse [16:04:06]1017 (14) - 77093643461234 [16:04:06]1041 (16) - 0000000000875095 [16:04:06]1040 (4) - 34447 [16:04:06]1012 (4) - 20.06.2024 09:43 [16:04:06]1206 (1) - 0 [16:04:06]OFD Sender: Remove packet 34447 [16:04:06]ProducePacketName [16:04:06]name=ofd_packets/00034447 [16:04:06]NVStorageDeleteData [16:04:06]Write to MH i2c: 01 00 00 82 11 93 [16:04:06]Write i2c OK [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: 01 [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: 01 07 00 [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 0C 0D B3 [16:04:06]RasterBufferAndPrint [16:04:06]line [16:04:06]line [16:04:06]line [16:04:06]line [16:04:06]line [16:04:06]written 0, free lines is 3347 [16:04:06]MH_Cut [16:04:06]Write to MH i2c: D1 01 00 89 11 01 6C [16:04:06]Write i2c OK [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: D1 [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: D1 01 00 [16:04:06]MH_I2C_Read... [16:04:06]Read from MH i2c: D1 01 00 89 11 00 6B [16:04:06]Write to MH i2c: 01 00 00 8A 11 9B [16:04:06]Write i2c OK [16:04:06]MH_I2C_Read... [16:04:07]OFD Sender: No OFD packet to send [16:04:07]*** Cut start [16:04:07]*** Partial cut [16:04:07]*** CUTSNS_PIN = 1 [16:04:07]*** CUTSNS_PIN = 0 [16:04:07]*** Brake cut motor [16:04:07]Read from MH i2c: 01 [16:04:07]MH_I2C_Read... [16:04:07]*** Stop cut motor [16:04:07]*** Cut end [16:04:07]Read from MH i2c: 01 07 00 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 FF 0F B0 [16:04:07]process_action close_receipt done [16:04:07]requested_data is exist [16:04:07]produce_requested_data [16:04:07]requested_item fm.sn is exist - process it [16:04:07]wFMCommunicate request_size=4 [16:04:07]MH_SAM_APDU [16:04:07]CAPDU: 80 11 00 00 [16:04:07]Write to MH i2c: E2 08 00 8B 11 80 11 00 00 00 00 00 00 16 [16:04:07]Write i2c OK [16:04:07]MH_I2C_Read... [16:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:07]Read from MH i2c: E2 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: E2 17 00 [16:04:07]MH_I2C_Read... [16:04:07]Read from MH i2c: E2 17 00 8B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6B [16:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:04:07]wFMCommunicate OK [16:04:07]requested_item fd.num is exist - process it [16:04:07]SAM_PROTO_GetFieldsCounters [16:04:07]wFMCommunicate request_size=4 [16:04:07]MH_SAM_APDU [16:04:07]CAPDU: 80 13 00 00 [16:04:07]Write to MH i2c: E2 08 00 8C 11 80 13 00 00 00 00 00 00 19 [16:04:07]Write i2c OK [16:04:07]MH_I2C_Read... [16:04:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:08]Read from MH i2c: E2 [16:04:08]MH_I2C_Read... [16:04:08]Read from MH i2c: E2 62 00 [16:04:08]MH_I2C_Read... [16:04:08]Read from MH i2c: E2 62 00 8C 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8F 86 00 00 0E 04 04 00 45 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 49 [16:04: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8F 86 00 00 0E 04 04 00 45 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 [16:04:08]wFMCommunicate OK [16:04:08]SAM_PROTO_GetFieldsCounters done [16:04:08]requested_item shift.num is exist - process it [16:04:08]requested_item shift.opened is exist - process it [16:04:08]req_shift_opened [16:04:08]FM_GetShiftState [16:04:08]SAM_PROTO_GetShiftState [16:04:08]wFMCommunicate request_size=4 [16:04:08]MH_SAM_APDU [16:04:08]CAPDU: 80 13 01 00 [16:04:08]Write to MH i2c: E2 08 00 8D 11 80 13 01 00 00 00 00 00 1B [16:04:08]Write i2c OK [16:04:08]MH_I2C_Read... [16:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:08]Read from MH i2c: E2 [16:04:08]MH_I2C_Read... [16:04:08]Read from MH i2c: E2 0E 00 [16:04:08]MH_I2C_Read... [16:04:08]Read from MH i2c: E2 0E 00 8D 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 33 [16:04:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:04:08]wFMCommunicate OK [16:04:08]SAM_PROTO_GetShiftState done [16:04:08]FM_GetShiftState done [16:04:08]req_shift_opened done [16:04:08]requested_item shift.open_date is exist - process it [16:04:08]req_shift_open_date [16:04:08]req_shift_open_date done [16:04:08]produce_requested_data done [16:04:08]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34447,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:04:08]process_action_free close_receipt [16:04:08]json_value_free [16:04:08]json_value_free done [16:04:08]process_json_proto returns [16:04:08]Send response to host [16:04:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34447,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:04:08]free response buf [16:04:08]execute_script done [16:04:08]execute_script returns [16:04:08]free content buf [16:04:08]Sock 8.Close socket [16:04:08]Sock 8.Thread stoped [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]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:35]accept exits with 10 [16:07:35]New connection [16:07:35]New thread 3066510692 created [16:07:35]Thread 3066654052 joined [16:07:35]Waiting for new connection... [16:07:35] Sock 10.Parse request [16:07:35]Sock 10.Check first char [16:07:35]Sock 10.First char is OK [16:07:35]request: POST /json_proto HTTP/1.0 [16:07:35]Method: POST [16:07:35]URL: /json_proto [16:07:35]Method is POST - this is cgi request [16:07:35]url: /json_proto [16:07:35]query_string will be loaded in cgi processing [16:07:35]execute_cgi json_proto POST (null) [16:07:35]execute_cgi path=json_proto method=POST [16:07:35]POST find Content-Length [16:07:35]Host: 172.17.38.134:8080 [16:07:35]Content-Length: 977 [16:07:35]Content-Type: application/json [16:07:35] [16:07:35]POST finish read [16:07:35]Found Content-Length = 977 [16:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184217", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 712.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:35]execute_script... [16:07:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184217", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 712.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:35]POST & json_proto [16:07:35]process_json_proto [16:07:35]json parsed OK: [16:07:35]protocol is kg_v1.0 [16:07:35]action value=close_receipt [16:07:35]process_action close_receipt [16:07:35]cmd_close_receipt [16:07:35]MH_GetDate [16:07:35]Write to MH i2c: F0 00 00 8E 11 8E [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 09 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 09 00 8E 11 00 C9 53 74 66 13 9C 7C 64 1C [16:07:35]GetLastDocTimeStamp 1718899446 [16:07:35]current date 1718899657 [16:07:35]FM_GetShiftState [16:07:35]SAM_PROTO_GetShiftState [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 13 01 00 [16:07:35]Write to MH i2c: E2 08 00 8F 11 80 13 01 00 00 00 00 00 1D [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0E 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0E 00 8F 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 35 [16:07:35]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:07:35]wFMCommunicate OK [16:07:35]SAM_PROTO_GetShiftState done [16:07:35]FM_GetShiftState done [16:07:35]opened in 1718843069 [16:07:35]opened+sec_in_day 1718929469 [16:07:35]quantity*price = 21000 [16:07:35]sum+1 = 21001 [16:07:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000029770012 Очки солнцезащитные в ассортименте 1.000 * 502.00 = 502.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 712.00 НСП 1% : 6.30 НДС 12% : 75.61 Наличными: 712.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 58 20.06.2024 16:07 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34448 ФПД: 19218422871721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160737&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34448&fm=19218422871721&tin=02508201610067®Number=0000000000092786&sum=71200 0 [16:07:36]StoreToDocumentArchive [16:07:36]shift 325 fd 34448 [16:07:36]save to /storage/0325/doc_00034448 [16:07:36]save last doc name /storage/0325/doc_00034448 to /storage/kkm_last_doc_name [16:07:36]save OK [16:07:36]Clear old archive folders... [16:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=403 [16:07:36]tlvbuf is 00207660 [16:07:36]SAM_PROTO_ClearQueue [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 09 00 00 [16:07:36]Write to MH i2c: E2 08 00 9C 11 80 09 00 00 00 00 00 00 1F [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]SAM_PROTO_ClearQueue done [16:07:36]KKMCreateOFDPacket [16:07:36]OFDProtocolAddRootSTLVToBuf [16:07:36]FM_MakeSignedData [16:07:36]FM_MakeSignedData [16:07:36]SAM_PROTO_SignData [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 01 02 [16:07:36]Write to MH i2c: E2 08 00 9D 11 80 0D 01 02 00 00 00 00 27 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]wFMCommunicate request_size=255 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 [16:07:36]Write to MH i2c: E2 02 01 9E 11 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 8C [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]wFMCommunicate request_size=162 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C9 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 86 00 00 35 04 06 00 11 7A A3 44 B6 A9 [16:07:36]Write to MH i2c: E2 A5 00 9F 11 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C9 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 86 00 00 35 04 06 00 11 7A A3 44 B6 A9 00 00 5C [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [16:07:37]RAPDU: 90 00 [16:07:37]wFMCommunicate OK [16:07:37]wFMCommunicate request_size=4 [16:07:37]MH_SAM_APDU [16:07:37]CAPDU: 80 0D 03 02 [16:07:37]Write to MH i2c: E2 08 00 A0 11 80 0D 03 02 00 00 00 00 2C [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 0B 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 0B 00 A0 11 00 D6 EE 28 88 74 29 6B 02 90 00 AB [16:07:37]RAPDU: D6 EE 28 88 74 29 6B 02 90 00 [16:07:37]wFMCommunicate OK [16:07:37]SAM_PROTO_SignData done [16:07:37]FM_MakeSignedData done [16:07:37]CreateOFDProtocolMessage [16:07:37]wFMCommunicate request_size=4 [16:07:37]MH_SAM_APDU [16:07:37]CAPDU: 80 11 00 00 [16:07:37]Write to MH i2c: E2 08 00 A1 11 80 11 00 00 00 00 00 00 2C [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 17 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 17 00 A1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 81 [16:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:07:37]wFMCommunicate OK [16:07:37]CreateOFDProtocolMessage done [16:07:37]OFDSenderStorePacket 34448 [16:07:37]StoreOFDPacket docnum=34448 [16:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A7 01 00 00 07 8E 9F 01 EB A7 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C9 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 86 00 00 35 04 06 00 11 7A A3 44 B6 A9 D6 EE 28 88 74 29 6B 02 [16:07:37]CheckFolder [16:07:37]dirname=/storage/ofd_packets [16:07:37]CheckFolder done [16:07:37]ProducePacketName [16:07:37]name=ofd_packets/00034448 [16:07:37]NVStorageSaveData ofd_packets/00034448 [16:07:37]File name is /storage/ofd_packets/00034448 [16:07:37]Write 453 bytes [16:07:37]NVStorageSaveData done [16:07:37]OFDSenderStorePacket done [16:07:37]KKMCreateOFDPacket done [16:07:37]NVStorageSaveData kkm_last_timestamp [16:07:37]File name is /storage/kkm_last_timestamp [16:07:37]Write 4 bytes [16:07:37]NVStorageSaveData done [16:07:37]ExternCall_PrintAddStr [16:07:37]wPrintStart [16:07:37]Write to MH i2c: 01 00 00 A2 11 B3 [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]OFD Sender: Processing packet 34448 [packets to send 8, broken 7] [16:07:37]Read from MH i2c: ProducePacketName [16:07:37]01 name=ofd_packets/00034448 [16:07:37] [16:07:37]MH_I2C_Read... [16:07:37]OFD Sender: To server: pG, [16:07:37]CommunicateWithHost lk.salyk.kg:30040 [16:07:37]Read from MH i2c: ConnectInit lk.salyk.kg [16:07:37]01 07 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 FF 0F C8 [16:07:37]RasterBufferAndPrint [16:07:37]line Счет N : (3)184217 [16:07:37]line ИНН: 02508201610067 [16:07:37]line Контрольно-Кассовый Чек [16:07:37]line ПРОДАЖА [16:07:37]line Товар: 4870001570095 [16:07:37]line Напиток Pepsi 2л [16:07:37]line 1.000 * 210.00 [16:07:37]line = 210.00 [16:07:37]line НДС 12% НСП 1% [16:07:37]line > о реализуемом товаре [16:07:37]line Товар: 2000029770012 [16:07:37]line Очки солнцезащитные в ассортименте [16:07:37]line 1.000 * 502.00 [16:07:37]line = 502.00 [16:07:37]line НДС 12% НСП 1% [16:07:37]line > о реализуемом товаре [16:07:37]line ИТОГО: 712.00 [16:07:37]line НСП 1% : 6.30 [16:07:37]line НДС 12% : 75.61 [16:07:37]line Наличными: 712.00 [16:07:37]line Безнал.: 0.00 [16:07:37]line Место: АЗС № 120 "Партнер Нефть" [16:07:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:07:37]line СНО: Общий режим [16:07:37]line Чек 58 20.06.2024 16:07 [16:07:37]line Смена: 325 ФФД: 1.0 [16:07:37]line ЗНМ: 0300000172 [16:07:37]line РНМ: 0000000000092786 [16:07:37]line Версия ККМ: 001 [16:07:37]line ФМ: 0000000000875095 [16:07:37]line ФД: 34448 [16:07:37]line ФПД: 19218422871721 [16:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160737&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34448&fm=19218422871721&tin=02508201610067®Number=0000000000092786&sum=71200 [16:07:37]line 0 [16:07:37]written 0, free lines is 4095 [16:07:37]Connected sock=9 [16:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A7 01 00 00 07 8E 9F 01 EB A7 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 1D 00 00 00 00 07 04 06 00 20 16 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C9 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 86 00 00 35 04 06 00 11 7A A3 44 B6 A9 D6 EE 28 88 74 29 6B 02 [16:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 35 35 47 00 4E 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 35 30 39 35 10 04 04 00 90 86 00 00 F4 03 04 00 93 FA 73 66 B6 04 01 00 00 9B A1 37 B7 F8 2E 13 C4 [16:07:37]CommunicateWithHost err = 0 [16:07:37]CheckOFDResponse [16:07:37]1017 (14) - 77093643461234 [16:07:37]1041 (16) - 0000000000875095 [16:07:37]1040 (4) - 34448 [16:07:37]1012 (4) - 20.06.2024 09:46 [16:07:37]1206 (1) - 0 [16:07:37]OFD Sender: Remove packet 34448 [16:07:37]ProducePacketName [16:07:37]name=ofd_packets/00034448 [16:07:37]NVStorageDeleteData [16:07:38]Write to MH i2c: 01 00 00 D1 11 E2 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 07 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 86 0C 7B [16:07:38]RasterBufferAndPrint [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]written 0, free lines is 3212 [16:07:38]MH_Cut [16:07:38]Write to MH i2c: D1 01 00 D8 11 01 BB [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 01 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 01 00 D8 11 00 BA [16:07:38]Write to MH i2c: 01 00 00 D9 11 EA [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]OFD Sender: No OFD packet to send [16:07:38]*** Cut start [16:07:38]*** Partial cut [16:07:38]*** CUTSNS_PIN = 1 [16:07:38]*** CUTSNS_PIN = 0 [16:07:39]*** Brake cut motor [16:07:39]Read from MH i2c: 01 [16:07:39]MH_I2C_Read... [16:07:39]*** Stop cut motor [16:07:39]*** Cut end [16:07:39]Read from MH i2c: 01 07 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FF 0F FF [16:07:39]process_action close_receipt done [16:07:39]requested_data is exist [16:07:39]produce_requested_data [16:07:39]requested_item fm.sn is exist - process it [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 11 00 00 [16:07:39]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 BA [16:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:07:39]wFMCommunicate OK [16:07:39]requested_item fd.num is exist - process it [16:07:39]SAM_PROTO_GetFieldsCounters [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 00 00 [16:07:39]Write to MH i2c: E2 08 00 DB 11 80 13 00 00 00 00 00 00 68 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 DB 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 90 86 00 00 0E 04 04 00 45 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 9C [16:07: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 90 86 00 00 0E 04 04 00 45 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 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetFieldsCounters done [16:07:39]requested_item shift.num is exist - process it [16:07:39]requested_item shift.opened is exist - process it [16:07:39]req_shift_opened [16:07:39]FM_GetShiftState [16:07:39]SAM_PROTO_GetShiftState [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 01 00 [16:07:39]Write to MH i2c: E2 08 00 DC 11 80 13 01 00 00 00 00 00 6A [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 DC 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 82 [16:07:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetShiftState done [16:07:39]FM_GetShiftState done [16:07:39]req_shift_opened done [16:07:39]requested_item shift.open_date is exist - process it [16:07:39]req_shift_open_date [16:07:39]req_shift_open_date done [16:07:39]produce_requested_data done [16:07:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34448,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:07:39]process_action_free close_receipt [16:07:39]json_value_free [16:07:39]json_value_free done [16:07:39]process_json_proto returns [16:07:39]Send response to host [16:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34448,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:07:39]free response buf [16:07:39]execute_script done [16:07:39]execute_script returns [16:07:39]free content buf [16:07:39]Sock 10.Close socket [16:07:39]Sock 10.Thread stoped [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:56]accept exits with 8 [16:07:56]New connection [16:07:56]New thread 3066654052 created [16:07:56]Thread 3066510692 joined [16:07:56]Waiting for new connection... [16:07:56] Sock 8.Parse request [16:07:56]Sock 8.Check first char [16:07:56]Sock 8.First char is OK [16:07:56]request: POST /json_proto HTTP/1.0 [16:07:56]Method: POST [16:07:56]URL: /json_proto [16:07:56]Method is POST - this is cgi request [16:07:56]url: /json_proto [16:07:56]query_string will be loaded in cgi processing [16:07:56]execute_cgi json_proto POST (null) [16:07:56]execute_cgi path=json_proto method=POST [16:07:56]POST find Content-Length [16:07:56]Host: 172.17.38.134:8080 [16:07:56]Content-Length: 671 [16:07:56]Content-Type: application/json [16:07:56] [16:07:56]POST finish read [16:07:56]Found Content-Length = 671 [16:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184218", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:56]execute_script... [16:07: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)184218", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:56]POST & json_proto [16:07:56]process_json_proto [16:07:56]json parsed OK: [16:07:56]protocol is kg_v1.0 [16:07:56]action value=close_receipt [16:07:56]process_action close_receipt [16:07:56]cmd_close_receipt [16:07:56]MH_GetDate [16:07:56]Write to MH i2c: F0 00 00 DD 11 DD [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: F0 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: F0 09 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: F0 09 00 DD 11 00 DE 53 74 66 13 9C 7C 64 80 [16:07:56]GetLastDocTimeStamp 1718899657 [16:07:56]current date 1718899678 [16:07:56]FM_GetShiftState [16:07:56]SAM_PROTO_GetShiftState [16:07:56]wFMCommunicate request_size=4 [16:07:56]MH_SAM_APDU [16:07:56]CAPDU: 80 13 01 00 [16:07:56]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [16:07:56]Write i2c OK [16:07:56]MH_I2C_Read... [16:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:56]Read from MH i2c: E2 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 0E 00 [16:07:56]MH_I2C_Read... [16:07:56]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 84 [16:07:56]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:07:56]wFMCommunicate OK [16:07:56]SAM_PROTO_GetShiftState done [16:07:56]FM_GetShiftState done [16:07:56]opened in 1718843069 [16:07:56]opened+sec_in_day 1718929469 [16:07:56]quantity*price = 9500 [16:07:56]sum+1 = 9501 [16:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 59 20.06.2024 16:07 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34449 ФПД: 142976334504244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160758&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34449&fm=142976334504244&tin=02508201610067®Number=0000000000092786&sum=9500 0 [16:07:57]StoreToDocumentArchive [16:07:57]shift 325 fd 34449 [16:07:57]save to /storage/0325/doc_00034449 [16:07:57]save last doc name /storage/0325/doc_00034449 to /storage/kkm_last_doc_name [16:07:57]save OK [16:07:57]Clear old archive folders... [16:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=290 [16:07:57]tlvbuf is 00261870 [16:07:57]SAM_PROTO_ClearQueue [16:07:57]wFMCommunicate request_size=4 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 09 00 00 [16:07:57]Write to MH i2c: E2 08 00 EB 11 80 09 00 00 00 00 00 00 6E [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [16:07:57]RAPDU: 90 00 [16:07:57]wFMCommunicate OK [16:07:57]SAM_PROTO_ClearQueue done [16:07:57]KKMCreateOFDPacket [16:07:57]OFDProtocolAddRootSTLVToBuf [16:07:57]FM_MakeSignedData [16:07:57]FM_MakeSignedData [16:07:57]SAM_PROTO_SignData [16:07:57]wFMCommunicate request_size=4 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 0D 01 02 [16:07:57]Write to MH i2c: E2 08 00 EC 11 80 0D 01 02 00 00 00 00 76 [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [16:07:57]RAPDU: 90 00 [16:07:57]wFMCommunicate OK [16:07:57]wFMCommunicate request_size=255 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DE 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [16:07:57]Write to MH i2c: E2 02 01 ED 11 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DE 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 D1 [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [16:07:57]RAPDU: 90 00 [16:07:57]wFMCommunicate OK [16:07:57]wFMCommunicate request_size=49 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 0D 02 02 2C 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 86 00 00 35 04 06 00 82 09 45 A1 21 34 [16:07:57]Write to MH i2c: E2 34 00 EE 11 80 0D 02 02 2C 00 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 86 00 00 35 04 06 00 82 09 45 A1 21 34 00 00 8C [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [16:07:57]RAPDU: 90 00 [16:07:57]wFMCommunicate OK [16:07:57]wFMCommunicate request_size=4 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 0D 03 02 [16:07:57]Write to MH i2c: E2 08 00 EF 11 80 0D 03 02 00 00 00 00 7B [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 0B 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 0B 00 EF 11 00 9D CF 72 09 FB 46 5F 15 90 00 18 [16:07:57]RAPDU: 9D CF 72 09 FB 46 5F 15 90 00 [16:07:57]wFMCommunicate OK [16:07:57]SAM_PROTO_SignData done [16:07:57]FM_MakeSignedData done [16:07:57]CreateOFDProtocolMessage [16:07:57]wFMCommunicate request_size=4 [16:07:57]MH_SAM_APDU [16:07:57]CAPDU: 80 11 00 00 [16:07:57]Write to MH i2c: E2 08 00 F0 11 80 11 00 00 00 00 00 00 7B [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:57]Read from MH i2c: E2 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 17 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: E2 17 00 F0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D0 [16:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:07:57]wFMCommunicate OK [16:07:57]CreateOFDProtocolMessage done [16:07:57]OFDSenderStorePacket 34449 [16:07:57]StoreOFDPacket docnum=34449 [16:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 E5 EC 2E 01 70 39 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DE 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 86 00 00 35 04 06 00 82 09 45 A1 21 34 9D CF 72 09 FB 46 5F 15 [16:07:57]CheckFolder [16:07:57]dirname=/storage/ofd_packets [16:07:57]CheckFolder done [16:07:57]ProducePacketName [16:07:57]name=ofd_packets/00034449 [16:07:57]NVStorageSaveData ofd_packets/00034449 [16:07:57]File name is /storage/ofd_packets/00034449 [16:07:57]Write 340 bytes [16:07:57]NVStorageSaveData done [16:07:57]OFDSenderStorePacket done [16:07:57]KKMCreateOFDPacket done [16:07:57]NVStorageSaveData kkm_last_timestamp [16:07:57]File name is /storage/kkm_last_timestamp [16:07:57]Write 4 bytes [16:07:57]NVStorageSaveData done [16:07:57]ExternCall_PrintAddStr [16:07:57]wPrintStart [16:07:57]Write to MH i2c: 01 00 00 F1 11 02 [16:07:57]OFD Sender: Processing packet 34449 [packets to send 8, broken 7] [16:07:57]ProducePacketName [16:07:57]name=ofd_packets/00034449 [16:07:57]OFD Sender: To server: pG, [16:07:57]CommunicateWithHost lk.salyk.kg:30040 [16:07:57]ConnectInit lk.salyk.kg [16:07:57]Write i2c OK [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: 01 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: 01 07 00 [16:07:57]MH_I2C_Read... [16:07:57]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 FF 0F 17 [16:07:57]RasterBufferAndPrint [16:07:57]line Счет N : (3)184218 [16:07:57]line ИНН: 02508201610067 [16:07:57]line Контрольно-Кассовый Чек [16:07:57]line ПРОДАЖА [16:07:57]line Товар: 4700000483334 [16:07:57]line Напиток Nitro Fresh Дикие ягоды [16:07:57]line 1.000 * 95.00 [16:07:57]line = 95.00 [16:07:57]line НДС 12% НСП 1% [16:07:57]line > о реализуемом товаре [16:07:57]line ИТОГО: 95.00 [16:07:57]line НСП 1% : 0.84 [16:07:57]line НДС 12% : 10.09 [16:07:57]line Наличными: 95.00 [16:07:57]line Безнал.: 0.00 [16:07:57]line Место: АЗС № 120 "Партнер Нефть" [16:07:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:07:57]line СНО: Общий режим [16:07:57]line Чек 59 20.06.2024 16:07 [16:07:57]line Смена: 325 ФФД: 1.0 [16:07:57]line ЗНМ: 0300000172 [16:07:57]line РНМ: 0000000000092786 [16:07:57]line Версия ККМ: 001 [16:07:57]line ФМ: 0000000000875095 [16:07:57]line ФД: 34449 [16:07:57]line ФПД: 142976334504244 [16:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160758&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34449&fm=142976334504244&tin=02508201610067®Number=0000000000092786&sum=9500 [16:07:58]Connected sock=10 [16:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 E5 EC 2E 01 70 39 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DE 53 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 86 00 00 35 04 06 00 82 09 45 A1 21 34 9D CF 72 09 FB 46 5F 15 [16:07:58]line 0 [16:07:58]written 0, free lines is 4095 [16:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 83 E9 47 00 9B 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 86 00 00 F4 03 04 00 A7 FA 73 66 B6 04 01 00 00 4C A9 FF 15 D8 7D 2F 2D [16:07:58]CommunicateWithHost err = 0 [16:07:58]CheckOFDResponse [16:07:58]1017 (14) - 77093643461234 [16:07:58]1041 (16) - 0000000000875095 [16:07:58]1040 (4) - 34449 [16:07:58]1012 (4) - 20.06.2024 09:47 [16:07:58]1206 (1) - 0 [16:07:58]OFD Sender: Remove packet 34449 [16:07:58]ProducePacketName [16:07:58]name=ofd_packets/00034449 [16:07:58]NVStorageDeleteData [16:07:58]Write to MH i2c: 01 00 00 1A 12 2C [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: 01 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: 01 07 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 E6 0C 25 [16:07:58]RasterBufferAndPrint [16:07:58]line [16:07:58]line [16:07:58]line [16:07:58]line [16:07:58]line [16:07:58]written 0, free lines is 3308 [16:07:58]MH_Cut [16:07:58]Write to MH i2c: D1 01 00 21 12 01 05 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: D1 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: D1 01 00 [16:07:58]MH_I2C_Read... [16:07:58]Read from MH i2c: D1 01 00 21 12 00 04 [16:07:58]Write to MH i2c: 01 00 00 22 12 34 [16:07:58]Write i2c OK [16:07:58]MH_I2C_Read... [16:07:58]OFD Sender: No OFD packet to send [16:07:59]*** Cut start [16:07:59]*** Partial cut [16:07:59]*** CUTSNS_PIN = 1 [16:07:59]*** CUTSNS_PIN = 0 [16:07:59]*** Brake cut motor [16:08:00]Read from MH i2c: 01 [16:08:00]MH_I2C_Read... [16:08:00]*** Stop cut motor [16:08:00]*** Cut end [16:08:00]Read from MH i2c: 01 07 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 FF 0F 49 [16:08:00]process_action close_receipt done [16:08:00]requested_data is exist [16:08:00]produce_requested_data [16:08:00]requested_item fm.sn is exist - process it [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 11 00 00 [16:08:00]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 17 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 04 [16:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:08:00]wFMCommunicate OK [16:08:00]requested_item fd.num is exist - process it [16:08:00]SAM_PROTO_GetFieldsCounters [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 13 00 00 [16:08:00]Write to MH i2c: E2 08 00 24 12 80 13 00 00 00 00 00 00 B2 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 62 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 62 00 24 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 91 86 00 00 0E 04 04 00 45 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 EA [16: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 91 86 00 00 0E 04 04 00 45 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 [16:08:00]wFMCommunicate OK [16:08:00]SAM_PROTO_GetFieldsCounters done [16:08:00]requested_item shift.num is exist - process it [16:08:00]requested_item shift.opened is exist - process it [16:08:00]req_shift_opened [16:08:00]FM_GetShiftState [16:08:00]SAM_PROTO_GetShiftState [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 13 01 00 [16:08:00]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0E 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CC [16:08:00]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:08:00]wFMCommunicate OK [16:08:00]SAM_PROTO_GetShiftState done [16:08:00]FM_GetShiftState done [16:08:00]req_shift_opened done [16:08:00]requested_item shift.open_date is exist - process it [16:08:00]req_shift_open_date [16:08:00]req_shift_open_date done [16:08:00]produce_requested_data done [16:08:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34449,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:08:00]process_action_free close_receipt [16:08:00]json_value_free [16:08:00]json_value_free done [16:08:00]process_json_proto returns [16:08:00]Send response to host [16:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34449,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:08:00]free response buf [16:08:00]execute_script done [16:08:00]execute_script returns [16:08:00]free content buf [16:08:00]Sock 8.Close socket [16:08:00]Sock 8.Thread stoped [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:27]accept exits with 9 [16:15:27]New connection [16:15:27]New thread 3066510692 created [16:15:27]Thread 3066654052 joined [16:15:27]Waiting for new connection... [16:15:27] Sock 9.Parse request [16:15:27]Sock 9.Check first char [16:15:27]Sock 9.First char is OK [16:15:27]request: POST /json_proto HTTP/1.0 [16:15:27]Method: POST [16:15:27]URL: /json_proto [16:15:27]Method is POST - this is cgi request [16:15:27]url: /json_proto [16:15:27]query_string will be loaded in cgi processing [16:15:27]execute_cgi json_proto POST (null) [16:15:27]execute_cgi path=json_proto method=POST [16:15:27]POST find Content-Length [16:15:27]Host: 172.17.38.134:8080 [16:15:27]Content-Length: 1762 [16:15:27]Content-Type: application/json [16:15:27] [16:15:27]POST finish read [16:15:27]Found Content-Length = 1762 [16:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184219", "tax_sys" : 0, "items" : [ { "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 137.00, "quantity" : 2.000, "sum" : 274.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 187.00, "quantity" : 1.000, "sum" : 187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 821.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:27]execute_script... [16:15: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)184219", "tax_sys" : 0, "items" : [ { "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 137.00, "quantity" : 2.000, "sum" : 274.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8691216097162", "name": "\u041C\u0430\u0440\u0448\u043C\u0435\u043B\u043B\u043E\u0443 HARIBO Party 70\u0433\u0440 (24)", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 187.00, "quantity" : 1.000, "sum" : 187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 821.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:28]POST & json_proto [16:15:28]process_json_proto [16:15:28]json parsed OK: [16:15:28]protocol is kg_v1.0 [16:15:28]action value=close_receipt [16:15:28]process_action close_receipt [16:15:28]cmd_close_receipt [16:15:28]MH_GetDate [16:15:28]Write to MH i2c: F0 00 00 26 12 27 [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 09 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 09 00 26 12 00 A2 55 74 66 13 9C 7C 64 90 [16:15:28]GetLastDocTimeStamp 1718899678 [16:15:28]current date 1718900130 [16:15:28]FM_GetShiftState [16:15:28]SAM_PROTO_GetShiftState [16:15:28]wFMCommunicate request_size=4 [16:15:28]MH_SAM_APDU [16:15:28]CAPDU: 80 13 01 00 [16:15:28]Write to MH i2c: E2 08 00 27 12 80 13 01 00 00 00 00 00 B6 [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:28]Read from MH i2c: E2 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: E2 0E 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: E2 0E 00 27 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CE [16:15:28]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:15:28]wFMCommunicate OK [16:15:28]SAM_PROTO_GetShiftState done [16:15:28]FM_GetShiftState done [16:15:28]opened in 1718843069 [16:15:28]opened+sec_in_day 1718929469 [16:15:28]quantity*price = 27400 [16:15:28]sum+1 = 27401 [16:15:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216097162 Маршмеллоу HARIBO Party 70гр (24) 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700321005031 Фисташки Mike жареные соленые 50г 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329004542 Снек Орехи BEERKa Фисташка 80г 1.000 * 187.00 = 187.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 821.00 НСП 1% : 7.25 НДС 12% : 87.19 Наличными: 0.00 Безнал.: 821.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 60 20.06.2024 16:15 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34450 ФПД: 277909220149699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161530&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34450&fm=277909220149699&tin=02508201610067®Number=0000000000092786&sum=82100 0 [16:15:29]StoreToDocumentArchive [16:15:29]shift 325 fd 34450 [16:15:29]save to /storage/0325/doc_00034450 [16:15:29]save last doc name /storage/0325/doc_00034450 to /storage/kkm_last_doc_name [16:15:29]save OK [16:15:29]Clear old archive folders... [16:15:29]ProcessDocumentItem done err = 0, tmpTLVsize=659 [16:15:29]tlvbuf is 001CDC40 [16:15:29]SAM_PROTO_ClearQueue [16:15:29]wFMCommunicate request_size=4 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 09 00 00 [16:15:29]Write to MH i2c: E2 08 00 34 12 80 09 00 00 00 00 00 00 B8 [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [16:15:29]RAPDU: 90 00 [16:15:29]wFMCommunicate OK [16:15:29]SAM_PROTO_ClearQueue done [16:15:29]KKMCreateOFDPacket [16:15:29]OFDProtocolAddRootSTLVToBuf [16:15:29]FM_MakeSignedData [16:15:29]FM_MakeSignedData [16:15:29]SAM_PROTO_SignData [16:15:29]wFMCommunicate request_size=4 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 0D 01 02 [16:15:29]Write to MH i2c: E2 08 00 35 12 80 0D 01 02 00 00 00 00 C0 [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [16:15:29]RAPDU: 90 00 [16:15:29]wFMCommunicate OK [16:15:29]wFMCommunicate request_size=255 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 0D 02 02 FA 03 00 93 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 08 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [16:15:29]Write to MH i2c: E2 02 01 36 12 80 0D 02 02 FA 00 03 00 93 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 08 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 4C [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]OFD Sender: No OFD packet to send [16:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [16:15:29]RAPDU: 90 00 [16:15:29]wFMCommunicate OK [16:15:29]wFMCommunicate request_size=255 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 0D 02 02 FA 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 49 00 00 00 00 13 04 06 00 0C 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [16:15:29]Write to MH i2c: E2 02 01 37 12 80 0D 02 02 FA 00 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 49 00 00 00 00 13 04 06 00 0C 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 74 [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [16:15:29]RAPDU: 90 00 [16:15:29]wFMCommunicate OK [16:15:29]wFMCommunicate request_size=168 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 0D 02 02 A3 06 00 B4 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 55 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 86 00 00 35 04 06 00 FC C1 C8 58 C9 C3 [16:15:29]Write to MH i2c: E2 AB 00 38 12 80 0D 02 02 A3 00 06 00 B4 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 55 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 86 00 00 35 04 06 00 FC C1 C8 58 C9 C3 00 00 1C [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [16:15:30]RAPDU: 90 00 [16:15:30]wFMCommunicate OK [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 0D 03 02 [16:15:30]Write to MH i2c: E2 08 00 39 12 80 0D 03 02 00 00 00 00 C6 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0B 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0B 00 39 12 00 1B 0B 38 C2 40 80 6C 6B 90 00 7E [16:15:30]RAPDU: 1B 0B 38 C2 40 80 6C 6B 90 00 [16:15:30]wFMCommunicate OK [16:15:30]SAM_PROTO_SignData done [16:15:30]FM_MakeSignedData done [16:15:30]CreateOFDProtocolMessage [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 11 00 00 [16:15:30]Write to MH i2c: E2 08 00 3A 12 80 11 00 00 00 00 00 00 C6 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 17 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 17 00 3A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1B [16:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:15:30]wFMCommunicate OK [16:15:30]CreateOFDProtocolMessage done [16:15:30]OFDSenderStorePacket 34450 [16:15:30]StoreOFDPacket docnum=34450 [16:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A7 02 00 00 21 5D 9F 02 D3 5B 5A 03 01 00 03 00 93 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 08 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 49 00 00 00 00 13 04 06 00 0C 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 55 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 86 00 00 35 04 06 00 FC C1 C8 58 C9 C3 1B 0B 38 C2 40 80 6C 6B [16:15:30]CheckFolder [16:15:30]dirname=/storage/ofd_packets [16:15:30]CheckFolder done [16:15:30]ProducePacketName [16:15:30]name=ofd_packets/00034450 [16:15:30]NVStorageSaveData ofd_packets/00034450 [16:15:30]File name is /storage/ofd_packets/00034450 [16:15:30]Write 709 bytes [16:15:30]NVStorageSaveData done [16:15:30]OFDSenderStorePacket done [16:15:30]KKMCreateOFDPacket done [16:15:30]NVStorageSaveData kkm_last_timestamp [16:15:30]File name is /storage/kkm_last_timestamp [16:15:30]Write 4 bytes [16:15:30]NVStorageSaveData done [16:15:30]ExternCall_PrintAddStr [16:15:30]wPrintStart [16:15:30]Write to MH i2c: 01 00 00 3B 12 4D [16:15:30]OFD Sender: Processing packet 34450 [packets to send 8, broken 7] [16:15:30]ProducePacketName [16:15:30]name=ofd_packets/00034450 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 [16:15:30]MH_I2C_Read... [16:15:30]OFD Sender: To server: pG, [16:15:30]CommunicateWithHost lk.salyk.kg:30040 [16:15:30]ConnectInit lk.salyk.kg [16:15:30]Read from MH i2c: 01 07 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 07 00 3B 12 00 00 00 00 00 FF 0F 62 [16:15:30]RasterBufferAndPrint [16:15:30]line Счет N : (3)184219 [16:15:30]line ИНН: 02508201610067 [16:15:30]line Контрольно-Кассовый Чек [16:15:30]line ПРОДАЖА [16:15:30]line Товар: 4607035653513 [16:15:30]line Вафли Голландские карамел 290 [16:15:30]line 2.000 * 137.00 [16:15:30]line = 274.00 [16:15:30]line НДС 12% НСП 1% [16:15:30]line > о реализуемом товаре [16:15:30]line Товар: 8691216097162 [16:15:30]line Маршмеллоу HARIBO Party 70гр (24) [16:15:30]line 1.000 * 100.00 [16:15:30]line = 100.00 [16:15:30]line НДС 12% НСП 1% [16:15:30]line > о реализуемом товаре [16:15:30]line Товар: 4700321005031 [16:15:30]line Фисташки Mike жареные соленые 50г [16:15:30]line 2.000 * 130.00 [16:15:30]line = 260.00 [16:15:30]line НДС 12% НСП 1% [16:15:30]line > о реализуемом товаре [16:15:30]line Товар: 4690329004542 [16:15:30]line Снек Орехи BEERKa Фисташка 80г [16:15:30]line 1.000 * 187.00 [16:15:30]line = 187.00 [16:15:30]line НДС 12% НСП 1% [16:15:30]line > о реализуемом товаре [16:15:30]line ИТОГО: 821.00 [16:15:30]line НСП 1% : 7.25 [16:15:30]line НДС 12% : 87.19 [16:15:30]line Наличными: 0.00 [16:15:30]line Безнал.: 821.00 [16:15:30]line Место: АЗС № 120 "Партнер Нефть" [16:15:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:15:30]line СНО: Общий режим [16:15:30]line Чек 60 20.06.2024 16:15 [16:15:30]line Смена: 325 ФФД: 1.0 [16:15:30]line ЗНМ: 0300000172 [16:15:30]line РНМ: 0000000000092786 [16:15:30]line Версия ККМ: 001 [16:15:30]line Платежная система: Бакай Банк [16:15:30]line ФМ: 0000000000875095 [16:15:30]line ФД: 34450 [16:15:30]line ФПД: 277909220149699 [16:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161530&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34450&fm=277909220149699&tin=02508201610067®Number=0000000000092786&sum=82100 [16:15:30]line 0 [16:15:30]written 0, free lines is 4095 [16:15:30]Connected sock=10 [16:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A7 02 00 00 21 5D 9F 02 D3 5B 5A 03 01 00 03 00 93 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 08 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 37 31 36 32 06 04 2D 00 D0 9C D0 B0 D1 80 D1 88 D0 BC D0 B5 D0 BB D0 BB D0 BE D1 83 20 48 41 52 49 42 4F 20 50 61 72 74 79 20 37 30 D0 B3 D1 80 20 28 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 49 00 00 00 00 13 04 06 00 0C 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 40 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 55 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 86 00 00 35 04 06 00 FC C1 C8 58 C9 C3 1B 0B 38 C2 40 80 6C 6B [16:15:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0C 0C 47 00 06 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 35 30 39 35 10 04 04 00 92 86 00 00 F4 03 04 00 6C FC 73 66 B6 04 01 00 00 E1 A3 FE DB 8B D9 1C 23 [16:15:30]CommunicateWithHost err = 0 [16:15:30]CheckOFDResponse [16:15:30]1017 (14) - 77093643461234 [16:15:30]1041 (16) - 0000000000875095 [16:15:30]1040 (4) - 34450 [16:15:30]1012 (4) - 20.06.2024 09:54 [16:15:30]1206 (1) - 0 [16:15:30]OFD Sender: Remove packet 34450 [16:15:30]ProducePacketName [16:15:30]name=ofd_packets/00034450 [16:15:30]NVStorageDeleteData [16:15:31]Write to MH i2c: 01 00 00 7B 12 8D [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 07 00 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 07 00 7B 12 00 00 00 00 00 8A 0B 29 [16:15:31]RasterBufferAndPrint [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]written 0, free lines is 2963 [16:15:31]MH_Cut [16:15:31]Write to MH i2c: D1 01 00 82 12 01 66 [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 01 00 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 01 00 82 12 00 65 [16:15:31]Write to MH i2c: 01 00 00 83 12 95 [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:31]OFD Sender: No OFD packet to send [16:15:32]*** Cut start [16:15:32]*** Partial cut [16:15:32]*** CUTSNS_PIN = 1 [16:15:32]*** CUTSNS_PIN = 0 [16:15:32]*** Brake cut motor [16:15:32]Read from MH i2c: 01 [16:15:32]MH_I2C_Read... [16:15:32]*** Stop cut motor [16:15:32]*** Cut end [16:15:32]Read from MH i2c: 01 07 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 83 12 00 00 00 00 00 FF 0F AA [16:15:32]process_action close_receipt done [16:15:32]requested_data is exist [16:15:32]produce_requested_data [16:15:32]requested_item fm.sn is exist - process it [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 11 00 00 [16:15:32]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:32]Read from MH i2c: E2 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 17 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 17 00 84 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 65 [16:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:15:32]wFMCommunicate OK [16:15:32]requested_item fd.num is exist - process it [16:15:32]SAM_PROTO_GetFieldsCounters [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 13 00 00 [16:15:32]Write to MH i2c: E2 08 00 85 12 80 13 00 00 00 00 00 00 13 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:32]Read from MH i2c: E2 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 62 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 62 00 85 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 92 86 00 00 0E 04 04 00 45 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 4F [16:15: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 92 86 00 00 0E 04 04 00 45 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 [16:15:32]wFMCommunicate OK [16:15:32]SAM_PROTO_GetFieldsCounters done [16:15:32]requested_item shift.num is exist - process it [16:15:32]requested_item shift.opened is exist - process it [16:15:32]req_shift_opened [16:15:32]FM_GetShiftState [16:15:32]SAM_PROTO_GetShiftState [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 13 01 00 [16:15:32]Write to MH i2c: E2 08 00 86 12 80 13 01 00 00 00 00 00 15 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:33]Read from MH i2c: E2 [16:15:33]MH_I2C_Read... [16:15:33]Read from MH i2c: E2 0E 00 [16:15:33]MH_I2C_Read... [16:15:33]Read from MH i2c: E2 0E 00 86 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2D [16:15:33]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:15:33]wFMCommunicate OK [16:15:33]SAM_PROTO_GetShiftState done [16:15:33]FM_GetShiftState done [16:15:33]req_shift_opened done [16:15:33]requested_item shift.open_date is exist - process it [16:15:33]req_shift_open_date [16:15:33]req_shift_open_date done [16:15:33]produce_requested_data done [16:15:33]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34450,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:15:33]process_action_free close_receipt [16:15:33]json_value_free [16:15:33]json_value_free done [16:15:33]process_json_proto returns [16:15:33]Send response to host [16:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34450,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:15:33]free response buf [16:15:33]execute_script done [16:15:33]execute_script returns [16:15:33]free content buf [16:15:33]Sock 9.Close socket [16:15:33]Sock 9.Thread stoped [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]accept exits with 8 [16:25:11]New connection [16:25:11]New thread 3066654052 created [16:25:11]Thread 3066510692 joined [16:25:11]Waiting for new connection... [16:25:11] Sock 8.Parse request [16:25:11]Sock 8.Check first char [16:25:11]Sock 8.First char is OK [16:25:11]request: POST /json_proto HTTP/1.0 [16:25:11]Method: POST [16:25:11]URL: /json_proto [16:25:11]Method is POST - this is cgi request [16:25:11]url: /json_proto [16:25:11]query_string will be loaded in cgi processing [16:25:11]execute_cgi json_proto POST (null) [16:25:11]execute_cgi path=json_proto method=POST [16:25:11]POST find Content-Length [16:25:11]Host: 172.17.38.134:8080 [16:25:11]Content-Length: 1124 [16:25:11]Content-Type: application/json [16:25:11] [16:25:11]POST finish read [16:25:11]Found Content-Length = 1124 [16:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184220", "tax_sys" : 0, "items" : [ { "code": "5906534010780", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Bubble Gum", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:11]execute_script... [16:25: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 : (3)184220", "tax_sys" : 0, "items" : [ { "code": "5906534010780", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 K2 Vento Bubble Gum", "price" : 245.00, "quantity" : 1.000, "sum" : 245.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:11]POST & json_proto [16:25:11]process_json_proto [16:25:11]json parsed OK: [16:25:11]protocol is kg_v1.0 [16:25:11]action value=close_receipt [16:25:11]process_action close_receipt [16:25:11]cmd_close_receipt [16:25:11]MH_GetDate [16:25:11]Write to MH i2c: F0 00 00 87 12 88 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: F0 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: F0 09 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: F0 09 00 87 12 00 E9 57 74 66 13 9C 7C 64 3A [16:25:11]GetLastDocTimeStamp 1718900130 [16:25:11]current date 1718900713 [16:25:11]FM_GetShiftState [16:25:11]SAM_PROTO_GetShiftState [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 01 00 [16:25:11]Write to MH i2c: E2 08 00 88 12 80 13 01 00 00 00 00 00 17 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 88 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2F [16:25:11]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetShiftState done [16:25:11]FM_GetShiftState done [16:25:11]opened in 1718843069 [16:25:11]opened+sec_in_day 1718929469 [16:25:11]quantity*price = 24500 [16:25:11]sum+1 = 24501 [16:25:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620016300305 Салфетки Absolut classic вл а/бакт 20 шт 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 20.06.2024 16:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34451 ФПД: 5118265302665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162513&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34451&fm=5118265302665&tin=02508201610067®Number=0000000000092786&sum=31000 0 [16:25:12]StoreToDocumentArchive [16:25:12]shift 325 fd 34451 [16:25:12]save to /storage/0325/doc_00034451 [16:25:12]save last doc name /storage/0325/doc_00034451 to /storage/kkm_last_doc_name [16:25:12]save OK [16:25:12]Clear old archive folders... [16:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=415 [16:25:12]tlvbuf is 00241400 [16:25:12]SAM_PROTO_ClearQueue [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 09 00 00 [16:25:12]Write to MH i2c: E2 08 00 95 12 80 09 00 00 00 00 00 00 19 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [16:25:12]RAPDU: 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_ClearQueue done [16:25:12]KKMCreateOFDPacket [16:25:12]OFDProtocolAddRootSTLVToBuf [16:25:12]FM_MakeSignedData [16:25:12]FM_MakeSignedData [16:25:12]SAM_PROTO_SignData [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 0D 01 02 [16:25:12]Write to MH i2c: E2 08 00 96 12 80 0D 01 02 00 00 00 00 21 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [16:25:12]RAPDU: 90 00 [16:25:12]wFMCommunicate OK [16:25:12]wFMCommunicate request_size=255 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 30 37 38 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 42 75 62 62 6C 65 20 47 75 6D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [16:25:12]Write to MH i2c: E2 02 01 97 12 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 30 37 38 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 42 75 62 62 6C 65 20 47 75 6D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 E1 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [16:25:12]RAPDU: 90 00 [16:25:12]wFMCommunicate OK [16:25:12]wFMCommunicate request_size=174 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 0D 02 02 A9 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 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E9 57 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 86 00 00 35 04 06 00 04 A7 B0 62 9E 89 [16:25:12]Write to MH i2c: E2 B1 00 98 12 80 0D 02 02 A9 00 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 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E9 57 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 86 00 00 35 04 06 00 04 A7 B0 62 9E 89 00 00 7E [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [16:25:12]RAPDU: 90 00 [16:25:12]wFMCommunicate OK [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 0D 03 02 [16:25:12]Write to MH i2c: E2 08 00 99 12 80 0D 03 02 00 00 00 00 26 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 0B 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 0B 00 99 12 00 E7 12 D0 95 35 72 F4 6D 90 00 8D [16:25:13]RAPDU: E7 12 D0 95 35 72 F4 6D 90 00 [16:25:13]wFMCommunicate OK [16:25:13]SAM_PROTO_SignData done [16:25:13]FM_MakeSignedData done [16:25:13]CreateOFDProtocolMessage [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 11 00 00 [16:25:13]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 17 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7B [16:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:13]wFMCommunicate OK [16:25:13]CreateOFDProtocolMessage done [16:25:13]OFDSenderStorePacket 34451 [16:25:13]StoreOFDPacket docnum=34451 [16:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B3 01 00 00 A9 5D AB 01 F0 35 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 30 37 38 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 42 75 62 62 6C 65 20 47 75 6D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 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 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E9 57 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 86 00 00 35 04 06 00 04 A7 B0 62 9E 89 E7 12 D0 95 35 72 F4 6D [16:25:13]CheckFolder [16:25:13]dirname=/storage/ofd_packets [16:25:13]CheckFolder done [16:25:13]ProducePacketName [16:25:13]name=ofd_packets/00034451 [16:25:13]NVStorageSaveData ofd_packets/00034451 [16:25:13]File name is /storage/ofd_packets/00034451 [16:25:13]Write 465 bytes [16:25:13]NVStorageSaveData done [16:25:13]OFDSenderStorePacket done [16:25:13]KKMCreateOFDPacket done [16:25:13]NVStorageSaveData kkm_last_timestamp [16:25:13]File name is /storage/kkm_last_timestamp [16:25:13]Write 4 bytes [16:25:13]NVStorageSaveData done [16:25:13]ExternCall_PrintAddStr [16:25:13]wPrintStart [16:25:13]Write to MH i2c: 01 00 00 9B 12 AD [16:25:13]OFD Sender: Processing packet 34451 [packets to send 8, broken 7] [16:25:13]ProducePacketName [16:25:13]name=ofd_packets/00034451 [16:25:13]OFD Sender: To server: pG, [16:25:13]CommunicateWithHost lk.salyk.kg:30040 [16:25:13]ConnectInit lk.salyk.kg [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 07 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 FF 0F C2 [16:25:13]RasterBufferAndPrint [16:25:13]line Счет N : (3)184220 [16:25:13]line ИНН: 02508201610067 [16:25:13]line Контрольно-Кассовый Чек [16:25:13]line ПРОДАЖА [16:25:13]line Товар: 5906534010780 [16:25:13]line Ароматизатор K2 Vento Bubble Gum [16:25:13]line 1.000 * 245.00 [16:25:13]line = 245.00 [16:25:13]line НДС 12% НСП 1% [16:25:13]line > о реализуемом товаре [16:25:13]line Товар: 4620016300305 [16:25:13]line Салфетки Absolut classic вл а/бакт 20 шт [16:25:13]line 1.000 * 65.00 [16:25:13]line = 65.00 [16:25:13]line НДС 12% НСП 1% [16:25:13]line > о реализуемом товаре [16:25:13]line ИТОГО: 310.00 [16:25:13]line НСП 1% : 2.74 [16:25:13]line НДС 12% : 32.92 [16:25:13]line Наличными: 0.00 [16:25:13]line Безнал.: 310.00 [16:25:13]line Место: АЗС № 120 "Партнер Нефть" [16:25:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:25:13]line СНО: Общий режим [16:25:13]line Чек 61 20.06.2024 16:25 [16:25:13]line Смена: 325 ФФД: 1.0 [16:25:13]line ЗНМ: 0300000172 [16:25:13]line РНМ: 0000000000092786 [16:25:13]line Версия ККМ: 001 [16:25:13]line Платежная система: Бакай Банк [16:25:13]line ФМ: 0000000000875095 [16:25:13]line ФД: 34451 [16:25:13]line ФПД: 5118265302665 [16:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162513&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34451&fm=5118265302665&tin=02508201610067®Number=0000000000092786&sum=31000 [16:25:13]line 0 [16:25:13]written 0, free lines is 4095 [16:25:13]Connected sock=10 [16:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B3 01 00 00 A9 5D AB 01 F0 35 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 35 39 30 36 35 33 34 30 31 30 37 38 30 06 04 2C 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 4B 32 20 56 65 6E 74 6F 20 42 75 62 62 6C 65 20 47 75 6D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 5F 00 00 00 00 13 04 06 00 B4 5F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 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 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E9 57 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 86 00 00 35 04 06 00 04 A7 B0 62 9E 89 E7 12 D0 95 35 72 F4 6D [16:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3C 88 47 00 37 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 86 00 00 F4 03 04 00 B3 FE 73 66 B6 04 01 00 00 BC 95 D7 40 D6 F8 93 04 [16:25:13]CommunicateWithHost err = 0 [16:25:13]CheckOFDResponse [16:25:13]1017 (14) - 77093643461234 [16:25:13]1041 (16) - 0000000000875095 [16:25:13]1040 (4) - 34451 [16:25:13]1012 (4) - 20.06.2024 10:04 [16:25:13]1206 (1) - 0 [16:25:13]OFD Sender: Remove packet 34451 [16:25:13]ProducePacketName [16:25:13]name=ofd_packets/00034451 [16:25:13]NVStorageDeleteData [16:25:13]Write to MH i2c: 01 00 00 CD 12 DF [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 07 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 5C 0C 4E [16:25:13]RasterBufferAndPrint [16:25:13]line [16:25:13]line [16:25:13]line [16:25:13]line [16:25:13]line [16:25:13]written 0, free lines is 3172 [16:25:13]MH_Cut [16:25:13]Write to MH i2c: D1 01 00 D4 12 01 B8 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: D1 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: D1 01 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: D1 01 00 D4 12 00 B7 [16:25:13]Write to MH i2c: 01 00 00 D5 12 E7 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:14]OFD Sender: No OFD packet to send [16:25:14]*** Cut start [16:25:14]*** Partial cut [16:25:14]*** CUTSNS_PIN = 1 [16:25:14]*** CUTSNS_PIN = 0 [16:25:15]*** Brake cut motor [16:25:15]Read from MH i2c: 01 [16:25:15]MH_I2C_Read... [16:25:15]*** Stop cut motor [16:25:15]*** Cut end [16:25:15]Read from MH i2c: 01 07 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [16:25:15]process_action close_receipt done [16:25:15]requested_data is exist [16:25:15]produce_requested_data [16:25:15]requested_item fm.sn is exist - process it [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 11 00 00 [16:25:15]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 17 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B7 [16:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:15]wFMCommunicate OK [16:25:15]requested_item fd.num is exist - process it [16:25:15]SAM_PROTO_GetFieldsCounters [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 13 00 00 [16:25:15]Write to MH i2c: E2 08 00 D7 12 80 13 00 00 00 00 00 00 65 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 62 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 62 00 D7 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 93 86 00 00 0E 04 04 00 45 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 A5 [16:25: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 93 86 00 00 0E 04 04 00 45 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 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_GetFieldsCounters done [16:25:15]requested_item shift.num is exist - process it [16:25:15]requested_item shift.opened is exist - process it [16:25:15]req_shift_opened [16:25:15]FM_GetShiftState [16:25:15]SAM_PROTO_GetShiftState [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 13 01 00 [16:25:15]Write to MH i2c: E2 08 00 D8 12 80 13 01 00 00 00 00 00 67 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:15]Read from MH i2c: E2 0E 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 0E 00 D8 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7F [16:25:15]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_GetShiftState done [16:25:15]FM_GetShiftState done [16:25:15]req_shift_opened done [16:25:15]requested_item shift.open_date is exist - process it [16:25:15]req_shift_open_date [16:25:15]req_shift_open_date done [16:25:15]produce_requested_data done [16:25:15]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34451,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:25:15]process_action_free close_receipt [16:25:15]json_value_free [16:25:15]json_value_free done [16:25:15]process_json_proto returns [16:25:15]Send response to host [16:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34451,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:25:15]free response buf [16:25:15]execute_script done [16:25:15]execute_script returns [16:25:15]free content buf [16:25:15]Sock 8.Close socket [16:25:15]Sock 8.Thread stoped [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]accept exits with 9 [16:25:39]New connection [16:25:39]New thread 3066510692 created [16:25:39]Thread 3066654052 joined [16:25:39]Waiting for new connection... [16:25:39] Sock 9.Parse request [16:25:39]Sock 9.Check first char [16:25:39]Sock 9.First char is OK [16:25:39]request: POST /json_proto HTTP/1.0 [16:25:39]Method: POST [16:25:39]URL: /json_proto [16:25:39]Method is POST - this is cgi request [16:25:39]url: /json_proto [16:25:39]query_string will be loaded in cgi processing [16:25:39]execute_cgi json_proto POST (null) [16:25:39]execute_cgi path=json_proto method=POST [16:25:39]POST find Content-Length [16:25:39]Host: 172.17.38.134:8080 [16:25:39]Content-Length: 637 [16:25:39]Content-Type: application/json [16:25:39] [16:25:39]POST finish read [16:25:39]Found Content-Length = 637 [16:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184221", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]execute_script... [16:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184221", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:39]POST & json_proto [16:25:39]process_json_proto [16:25:39]json parsed OK: [16:25:39]protocol is kg_v1.0 [16:25:39]action value=close_receipt [16:25:39]process_action close_receipt [16:25:39]cmd_close_receipt [16:25:39]MH_GetDate [16:25:39]Write to MH i2c: F0 00 00 D9 12 DA [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 09 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: F0 09 00 D9 12 00 05 58 74 66 13 9C 7C 64 A9 [16:25:39]GetLastDocTimeStamp 1718900713 [16:25:39]current date 1718900741 [16:25:39]FM_GetShiftState [16:25:39]SAM_PROTO_GetShiftState [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 13 01 00 [16:25:39]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 81 [16:25:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_GetShiftState done [16:25:39]FM_GetShiftState done [16:25:39]opened in 1718843069 [16:25:39]opened+sec_in_day 1718929469 [16:25:39]quantity*price = 8000 [16:25:39]sum+1 = 8001 [16:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 62 20.06.2024 16:25 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34452 ФПД: 187379010156119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162541&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34452&fm=187379010156119&tin=02508201610067®Number=0000000000092786&sum=8000 0 [16:25:40]StoreToDocumentArchive [16:25:40]shift 325 fd 34452 [16:25:40]save to /storage/0325/doc_00034452 [16:25:40]save last doc name /storage/0325/doc_00034452 to /storage/kkm_last_doc_name [16:25:40]save OK [16:25:40]Clear old archive folders... [16:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=288 [16:25:40]tlvbuf is 00224C80 [16:25:40]SAM_PROTO_ClearQueue [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 09 00 00 [16:25:40]Write to MH i2c: E2 08 00 E7 12 80 09 00 00 00 00 00 00 6B [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]SAM_PROTO_ClearQueue done [16:25:40]KKMCreateOFDPacket [16:25:40]OFDProtocolAddRootSTLVToBuf [16:25:40]FM_MakeSignedData [16:25:40]FM_MakeSignedData [16:25:40]SAM_PROTO_SignData [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 01 02 [16:25:40]Write to MH i2c: E2 08 00 E8 12 80 0D 01 02 00 00 00 00 73 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=255 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 05 58 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [16:25:40]Write to MH i2c: E2 02 01 E9 12 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 05 58 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 78 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=47 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 02 02 2A 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 86 00 00 35 04 06 00 AA 6B 93 56 B6 57 [16:25:40]Write to MH i2c: E2 32 00 EA 12 80 0D 02 02 2A 00 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 86 00 00 35 04 06 00 AA 6B 93 56 B6 57 00 00 64 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 03 02 [16:25:40]Write to MH i2c: E2 08 00 EB 12 80 0D 03 02 00 00 00 00 78 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 EB 12 00 6A FF 28 6A 99 22 25 CF 90 00 23 [16:25:40]RAPDU: 6A FF 28 6A 99 22 25 CF 90 00 [16:25:40]wFMCommunicate OK [16:25:40]SAM_PROTO_SignData done [16:25:40]FM_MakeSignedData done [16:25:40]CreateOFDProtocolMessage [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 11 00 00 [16:25:40]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 EC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CD [16:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:40]wFMCommunicate OK [16:25:40]CreateOFDProtocolMessage done [16:25:40]OFDSenderStorePacket 34452 [16:25:40]StoreOFDPacket docnum=34452 [16:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 F5 C7 2C 01 57 64 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 05 58 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 86 00 00 35 04 06 00 AA 6B 93 56 B6 57 6A FF 28 6A 99 22 25 CF [16:25:40]CheckFolder [16:25:40]dirname=/storage/ofd_packets [16:25:40]CheckFolder done [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00034452 [16:25:40]NVStorageSaveData ofd_packets/00034452 [16:25:40]File name is /storage/ofd_packets/00034452 [16:25:40]Write 338 bytes [16:25:40]NVStorageSaveData done [16:25:40]OFDSenderStorePacket done [16:25:40]KKMCreateOFDPacket done [16:25:40]NVStorageSaveData kkm_last_timestamp [16:25:40]File name is /storage/kkm_last_timestamp [16:25:40]Write 4 bytes [16:25:40]NVStorageSaveData done [16:25:40]ExternCall_PrintAddStr [16:25:40]wPrintStart [16:25:40]Write to MH i2c: 01 00 00 ED 12 FF [16:25:40]OFD Sender: Processing packet 34452 [packets to send 8, broken 7] [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00034452 [16:25:40]OFD Sender: To server: pG, [16:25:40]CommunicateWithHost lk.salyk.kg:30040 [16:25:40]ConnectInit lk.salyk.kg [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 ED 12 00 00 00 00 00 FF 0F 14 [16:25:40]RasterBufferAndPrint [16:25:40]line Счет N : (3)184221 [16:25:40]line ИНН: 02508201610067 [16:25:40]line Контрольно-Кассовый Чек [16:25:40]line ПРОДАЖА [16:25:40]line Товар: 3800020453407 [16:25:40]line Nestle KIT-KAT батончик chunky 36x40г [16:25:40]line 1.000 * 80.00 [16:25:40]line = 80.00 [16:25:40]line НДС 12% НСП 1% [16:25:40]line > о реализуемом товаре [16:25:40]line ИТОГО: 80.00 [16:25:40]line НСП 1% : 0.71 [16:25:40]line НДС 12% : 8.50 [16:25:40]line Наличными: 80.00 [16:25:40]line Безнал.: 0.00 [16:25:40]line Место: АЗС № 120 "Партнер Нефть" [16:25:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:25:40]line СНО: Общий режим [16:25:40]line Чек 62 20.06.2024 16:25 [16:25:40]line Смена: 325 ФФД: 1.0 [16:25:40]line ЗНМ: 0300000172 [16:25:40]line РНМ: 0000000000092786 [16:25:40]line Версия ККМ: 001 [16:25:40]line ФМ: 0000000000875095 [16:25:40]line ФД: 34452 [16:25:40]line ФПД: 187379010156119 [16:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162541&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34452&fm=187379010156119&tin=02508201610067®Number=0000000000092786&sum=8000 [16:25:41]line 0 [16:25:41]Connected sock=10 [16:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 F5 C7 2C 01 57 64 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 05 58 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 86 00 00 35 04 06 00 AA 6B 93 56 B6 57 6A FF 28 6A 99 22 25 CF [16:25:41]written 0, free lines is 4095 [16:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F4 C2 47 00 31 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 35 30 39 35 10 04 04 00 94 86 00 00 F4 03 04 00 CF FE 73 66 B6 04 01 00 00 56 4B FA 1E C0 B5 13 19 [16:25:41]CommunicateWithHost err = 0 [16:25:41]CheckOFDResponse [16:25:41]1017 (14) - 77093643461234 [16:25:41]1041 (16) - 0000000000875095 [16:25:41]1040 (4) - 34452 [16:25:41]1012 (4) - 20.06.2024 10:05 [16:25:41]1206 (1) - 0 [16:25:41]OFD Sender: Remove packet 34452 [16:25:41]ProducePacketName [16:25:41]name=ofd_packets/00034452 [16:25:41]NVStorageDeleteData [16:25:41]Write to MH i2c: 01 00 00 16 13 29 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 07 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: 01 07 00 16 13 00 00 00 00 00 EC 0C 28 [16:25:41]RasterBufferAndPrint [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]line [16:25:41]written 0, free lines is 3314 [16:25:41]MH_Cut [16:25:41]Write to MH i2c: D1 01 00 1D 13 01 02 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 01 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 01 00 1D 13 00 01 [16:25:41]Write to MH i2c: 01 00 00 1E 13 31 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:42]OFD Sender: No OFD packet to send [16:25:42]*** Cut start [16:25:42]*** Partial cut [16:25:42]*** CUTSNS_PIN = 1 [16:25:42]*** CUTSNS_PIN = 0 [16:25:42]*** Brake cut motor [16:25:42]Read from MH i2c: 01 [16:25:42]MH_I2C_Read... [16:25:42]*** Stop cut motor [16:25:42]Read from MH i2c: 01 07 00 [16:25:42]MH_I2C_Read... [16:25:42]*** Cut end [16:25:42]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 FF 0F 46 [16:25:42]process_action close_receipt done [16:25:42]requested_data is exist [16:25:42]produce_requested_data [16:25:42]requested_item fm.sn is exist - process it [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 11 00 00 [16:25:42]Write to MH i2c: E2 08 00 1F 13 80 11 00 00 00 00 00 00 AC [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 01 [16:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:43]wFMCommunicate OK [16:25:43]requested_item fd.num is exist - process it [16:25:43]SAM_PROTO_GetFieldsCounters [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 00 00 [16:25:43]Write to MH i2c: E2 08 00 20 13 80 13 00 00 00 00 00 00 AF [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 62 00 20 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 94 86 00 00 0E 04 04 00 45 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 F3 [16:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 94 86 00 00 0E 04 04 00 45 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 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetFieldsCounters done [16:25:43]requested_item shift.num is exist - process it [16:25:43]requested_item shift.opened is exist - process it [16:25:43]req_shift_opened [16:25:43]FM_GetShiftState [16:25:43]SAM_PROTO_GetShiftState [16:25:43]wFMCommunicate request_size=4 [16:25:43]MH_SAM_APDU [16:25:43]CAPDU: 80 13 01 00 [16:25:43]Write to MH i2c: E2 08 00 21 13 80 13 01 00 00 00 00 00 B1 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:43]Read from MH i2c: E2 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: E2 0E 00 21 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C9 [16:25:43]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [16:25:43]wFMCommunicate OK [16:25:43]SAM_PROTO_GetShiftState done [16:25:43]FM_GetShiftState done [16:25:43]req_shift_opened done [16:25:43]requested_item shift.open_date is exist - process it [16:25:43]req_shift_open_date [16:25:43]req_shift_open_date done [16:25:43]produce_requested_data done [16:25:43]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34452,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [16:25:43]process_action_free close_receipt [16:25:43]json_value_free [16:25:43]json_value_free done [16:25:43]process_json_proto returns [16:25:43]Send response to host [16:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34452,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [16:25:43]free response buf [16:25:43]execute_script done [16:25:43]execute_script returns [16:25:43]free content buf [16:25:43]Sock 9.Close socket [16:25:43]Sock 9.Thread stoped [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46: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:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07: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:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:44]accept exits with 8 [17:27:45]New connection [17:27:45]New thread 3066654052 created [17:27:45]Thread 3066510692 joined [17:27:45]Waiting for new connection... [17:27:45] Sock 8.Parse request [17:27:45]Sock 8.Check first char [17:27:45]Sock 8.First char is OK [17:27:45]request: POST /json_proto HTTP/1.0 [17:27:45]Method: POST [17:27:45]URL: /json_proto [17:27:45]Method is POST - this is cgi request [17:27:45]url: /json_proto [17:27:45]query_string will be loaded in cgi processing [17:27:45]execute_cgi json_proto POST (null) [17:27:45]execute_cgi path=json_proto method=POST [17:27:45]POST find Content-Length [17:27:45]Host: 172.17.38.134:8080 [17:27:45]Content-Length: 669 [17:27:45]Content-Type: application/json [17:27:45] [17:27:45]POST finish read [17:27:45]Found Content-Length = 669 [17:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184222", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:45]execute_script... [17: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 : (3)184222", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:45]POST & json_proto [17:27:45]process_json_proto [17:27:45]json parsed OK: [17:27:45]protocol is kg_v1.0 [17:27:45]action value=close_receipt [17:27:45]process_action close_receipt [17:27:45]cmd_close_receipt [17:27:45]MH_GetDate [17:27:45]Write to MH i2c: F0 00 00 22 13 24 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: F0 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: F0 09 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: F0 09 00 22 13 00 93 66 74 66 13 9C 7C 64 8F [17:27:45]GetLastDocTimeStamp 1718900741 [17:27:45]current date 1718904467 [17:27:45]FM_GetShiftState [17:27:45]SAM_PROTO_GetShiftState [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 13 01 00 [17:27:45]Write to MH i2c: E2 08 00 23 13 80 13 01 00 00 00 00 00 B3 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0E 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0E 00 23 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CB [17:27:45]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_GetShiftState done [17:27:45]FM_GetShiftState done [17:27:45]opened in 1718843069 [17:27:45]opened+sec_in_day 1718929469 [17:27:45]quantity*price = 11000 [17:27:45]sum+1 = 11001 [17:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 20.06.2024 17:27 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34453 ФПД: 154418826410414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172747&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34453&fm=154418826410414&tin=02508201610067®Number=0000000000092786&sum=11000 0 [17:27:46]StoreToDocumentArchive [17:27:46]shift 325 fd 34453 [17:27:46]save to /storage/0325/doc_00034453 [17:27:46]save last doc name /storage/0325/doc_00034453 to /storage/kkm_last_doc_name [17:27:46]save OK [17:27:46]Clear old archive folders... [17:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:27:46]tlvbuf is 0020AE30 [17:27:46]SAM_PROTO_ClearQueue [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 09 00 00 [17:27:46]Write to MH i2c: E2 08 00 30 13 80 09 00 00 00 00 00 00 B5 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 30 13 00 90 00 B7 [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_ClearQueue done [17:27:46]KKMCreateOFDPacket [17:27:46]OFDProtocolAddRootSTLVToBuf [17:27:46]FM_MakeSignedData [17:27:46]FM_MakeSignedData [17:27:46]SAM_PROTO_SignData [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 0D 01 02 [17:27:46]Write to MH i2c: E2 08 00 31 13 80 0D 01 02 00 00 00 00 BD [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]wFMCommunicate request_size=255 [17:27:46]MH_SAM_APDU [17:27:46]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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 93 66 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:27:46]Write to MH i2c: E2 02 01 32 13 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 93 66 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 2F [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]wFMCommunicate request_size=52 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 86 00 00 35 04 06 00 8C 71 6F 4B 79 AE [17:27:46]Write to MH i2c: E2 37 00 33 13 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 86 00 00 35 04 06 00 8C 71 6F 4B 79 AE 00 00 85 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 0D 03 02 [17:27:46]Write to MH i2c: E2 08 00 34 13 80 0D 03 02 00 00 00 00 C2 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0B 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0B 00 34 13 00 2E 9B 0E 52 28 05 EC 37 90 00 3C [17:27:46]RAPDU: 2E 9B 0E 52 28 05 EC 37 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_SignData done [17:27:46]FM_MakeSignedData done [17:27:46]CreateOFDProtocolMessage [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 11 00 00 [17:27:46]Write to MH i2c: E2 08 00 35 13 80 11 00 00 00 00 00 00 C2 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 35 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 17 [17:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:27:46]wFMCommunicate OK [17:27:46]CreateOFDProtocolMessage done [17:27:46]OFDSenderStorePacket 34453 [17:27:46]StoreOFDPacket docnum=34453 [17:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 64 A4 31 01 8E 8C 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 93 66 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 86 00 00 35 04 06 00 8C 71 6F 4B 79 AE 2E 9B 0E 52 28 05 EC 37 [17:27:46]CheckFolder [17:27:46]dirname=/storage/ofd_packets [17:27:46]CheckFolder done [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00034453 [17:27:46]NVStorageSaveData ofd_packets/00034453 [17:27:46]File name is /storage/ofd_packets/00034453 [17:27:46]Write 343 bytes [17:27:46]NVStorageSaveData done [17:27:46]OFDSenderStorePacket done [17:27:46]KKMCreateOFDPacket done [17:27:46]NVStorageSaveData kkm_last_timestamp [17:27:46]File name is /storage/kkm_last_timestamp [17:27:46]Write 4 bytes [17:27:46]NVStorageSaveData done [17:27:46]ExternCall_PrintAddStr [17:27:46]wPrintStart [17:27:46]Write to MH i2c: 01 00 00 36 13 49 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [17:27:46]RasterBufferAndPrint [17:27:46]line Счет N : (3)184222 [17:27:46]line ИНН: 02508201610067 [17:27:46]line Контрольно-Кассовый Чек [17:27:46]line ПРОДАЖА [17:27:46]line Товар: 4870022003305 [17:27:46]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:27:46]line 1.000 * 110.00 [17:27:46]line = 110.00 [17:27:46]line НДС 12% НСП 1% [17:27:46]line > о реализуемом товаре [17:27:46]line ИТОГО: 110.00 [17:27:46]line НСП 1% : 0.97 [17:27:46]line НДС 12% : 11.68 [17:27:46]line Наличными: 110.00 [17:27:46]line Безнал.: 0.00 [17:27:46]line Место: АЗС № 120 "Партнер Нефть" [17:27:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:27:46]line СНО: Общий режим [17:27:46]line Чек 63 20.06.2024 17:27 [17:27:46]line Смена: 325 ФФД: 1.0 [17:27:46]line ЗНМ: 0300000172 [17:27:46]line РНМ: 0000000000092786 [17:27:46]line Версия ККМ: 001 [17:27:46]line ФМ: 0000000000875095 [17:27:46]line ФД: 34453 [17:27:46]line ФПД: 154418826410414 [17:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172747&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34453&fm=154418826410414&tin=02508201610067®Number=0000000000092786&sum=11000 [17:27:47]line 0 [17:27:47]OFD Sender: Processing packet 34453 [packets to send 8, broken 7] [17:27:47]ProducePacketName [17:27:47]name=ofd_packets/00034453 [17:27:47]OFD Sender: To server: pG, [17:27:47]CommunicateWithHost lk.salyk.kg:30040 [17:27:47]ConnectInit lk.salyk.kg [17:27:47]written 0, free lines is 4095 [17:27:47]Connected sock=10 [17: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 35 30 39 35 39 01 00 00 64 A4 31 01 8E 8C 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 93 66 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 86 00 00 35 04 06 00 8C 71 6F 4B 79 AE 2E 9B 0E 52 28 05 EC 37 [17:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E4 42 47 00 83 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 86 00 00 F4 03 04 00 5D 0D 74 66 B6 04 01 00 00 32 31 5C 2A 84 81 9A 3E [17:27:47]CommunicateWithHost err = 0 [17:27:47]CheckOFDResponse [17:27:47]1017 (14) - 77093643461234 [17:27:47]1041 (16) - 0000000000875095 [17:27:47]1040 (4) - 34453 [17:27:47]1012 (4) - 20.06.2024 11:07 [17:27:47]1206 (1) - 0 [17:27:47]OFD Sender: Remove packet 34453 [17:27:47]ProducePacketName [17:27:47]name=ofd_packets/00034453 [17:27:47]NVStorageDeleteData [17:27:47]Write to MH i2c: 01 00 00 5F 13 72 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 07 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 07 00 5F 13 00 00 00 00 00 FF 0C 84 [17:27:47]RasterBufferAndPrint [17:27:47]line [17:27:47]line [17:27:47]line [17:27:47]line [17:27:47]line [17:27:47]written 0, free lines is 3332 [17:27:47]MH_Cut [17:27:47]Write to MH i2c: D1 01 00 66 13 01 4B [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: D1 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: D1 01 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: D1 01 00 66 13 00 4A [17:27:47]Write to MH i2c: 01 00 00 67 13 7A [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]OFD Sender: No OFD packet to send [17:27:48]*** Cut start [17:27:48]*** Partial cut [17:27:48]*** CUTSNS_PIN = 1 [17:27:48]*** CUTSNS_PIN = 0 [17:27:48]*** Brake cut motor [17:27:48]Read from MH i2c: 01 [17:27:48]MH_I2C_Read... [17:27:48]*** Stop cut motor [17:27:48]*** Cut end [17:27:48]Read from MH i2c: 01 07 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 07 00 67 13 00 00 00 00 00 FF 0F 8F [17:27:48]process_action close_receipt done [17:27:48]requested_data is exist [17:27:48]produce_requested_data [17:27:48]requested_item fm.sn is exist - process it [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 11 00 00 [17:27:48]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 17 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4A [17:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:27:48]wFMCommunicate OK [17:27:48]requested_item fd.num is exist - process it [17:27:48]SAM_PROTO_GetFieldsCounters [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 00 00 [17:27:48]Write to MH i2c: E2 08 00 69 13 80 13 00 00 00 00 00 00 F8 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:49]Read from MH i2c: E2 [17:27:49]MH_I2C_Read... [17:27:49]Read from MH i2c: E2 62 00 [17:27:49]MH_I2C_Read... [17:27:49]Read from MH i2c: E2 62 00 69 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 95 86 00 00 0E 04 04 00 45 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 40 [17: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 95 86 00 00 0E 04 04 00 45 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 [17:27:49]wFMCommunicate OK [17:27:49]SAM_PROTO_GetFieldsCounters done [17:27:49]requested_item shift.num is exist - process it [17:27:49]requested_item shift.opened is exist - process it [17:27:49]req_shift_opened [17:27:49]FM_GetShiftState [17:27:49]SAM_PROTO_GetShiftState [17:27:49]wFMCommunicate request_size=4 [17:27:49]MH_SAM_APDU [17:27:49]CAPDU: 80 13 01 00 [17:27:49]Write to MH i2c: E2 08 00 6A 13 80 13 01 00 00 00 00 00 FA [17:27:49]Write i2c OK [17:27:49]MH_I2C_Read... [17:27:49]Read from MH i2c: E2 [17:27:49]MH_I2C_Read... [17:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:49]Read from MH i2c: E2 0E 00 [17:27:49]MH_I2C_Read... [17:27:49]Read from MH i2c: E2 0E 00 6A 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 12 [17:27:49]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:27:49]wFMCommunicate OK [17:27:49]SAM_PROTO_GetShiftState done [17:27:49]FM_GetShiftState done [17:27:49]req_shift_opened done [17:27:49]requested_item shift.open_date is exist - process it [17:27:49]req_shift_open_date [17:27:49]req_shift_open_date done [17:27:49]produce_requested_data done [17:27:49]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34453,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [17:27:49]process_action_free close_receipt [17:27:49]json_value_free [17:27:49]json_value_free done [17:27:49]process_json_proto returns [17:27:49]Send response to host [17:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34453,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [17:27:49]free response buf [17:27:49]execute_script done [17:27:49]execute_script returns [17:27:49]free content buf [17:27:49]Sock 8.Close socket [17:27:49]Sock 8.Thread stoped [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:27]accept exits with 9 [17:33:27]New connection [17:33:27]New thread 3066510692 created [17:33:27]Thread 3066654052 joined [17:33:27]Waiting for new connection... [17:33:27] Sock 9.Parse request [17:33:27]Sock 9.Check first char [17:33:27]Sock 9.First char is OK [17:33:27]request: POST /json_proto HTTP/1.0 [17:33:27]Method: POST [17:33:27]URL: /json_proto [17:33:27]Method is POST - this is cgi request [17:33:27]url: /json_proto [17:33:27]query_string will be loaded in cgi processing [17:33:27]execute_cgi json_proto POST (null) [17:33:27]execute_cgi path=json_proto method=POST [17:33:27]POST find Content-Length [17:33:27]Host: 172.17.38.134:8080 [17:33:27]Content-Length: 622 [17:33:27]Content-Type: application/json [17:33:27] [17:33:27]POST finish read [17:33:27]Found Content-Length = 622 [17:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184223", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:27]execute_script... [17:33: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)184223", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:27]POST & json_proto [17:33:27]process_json_proto [17:33:27]json parsed OK: [17:33:27]protocol is kg_v1.0 [17:33:27]action value=close_receipt [17:33:27]process_action close_receipt [17:33:27]cmd_close_receipt [17:33:27]MH_GetDate [17:33:27]Write to MH i2c: F0 00 00 6B 13 6D [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: F0 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: F0 09 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: F0 09 00 6B 13 00 EA 67 74 66 13 9C 7C 64 30 [17:33:27]GetLastDocTimeStamp 1718904467 [17:33:27]current date 1718904810 [17:33:27]FM_GetShiftState [17:33:27]SAM_PROTO_GetShiftState [17:33:27]wFMCommunicate request_size=4 [17:33:27]MH_SAM_APDU [17:33:27]CAPDU: 80 13 01 00 [17:33:27]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:27]Read from MH i2c: E2 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 0E 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 14 [17:33:27]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:33:27]wFMCommunicate OK [17:33:27]SAM_PROTO_GetShiftState done [17:33:27]FM_GetShiftState done [17:33:27]opened in 1718843069 [17:33:27]opened+sec_in_day 1718929469 [17:33:27]quantity*price = 13800 [17:33:27]sum+1 = 13801 [17:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 20.06.2024 17:33 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34454 ФПД: 48310834839397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173330&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34454&fm=48310834839397&tin=02508201610067®Number=0000000000092786&sum=13800 0 [17:33:29]StoreToDocumentArchive [17:33:29]shift 325 fd 34454 [17:33:29]save to /storage/0325/doc_00034454 [17:33:29]save last doc name /storage/0325/doc_00034454 to /storage/kkm_last_doc_name [17:33:29]save OK [17:33:29]Clear old archive folders... [17:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:33:29]tlvbuf is 002050E0 [17:33:29]SAM_PROTO_ClearQueue [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 09 00 00 [17:33:29]Write to MH i2c: E2 08 00 79 13 80 09 00 00 00 00 00 00 FE [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 79 13 00 90 00 00 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_ClearQueue done [17:33:29]KKMCreateOFDPacket [17:33:29]OFDProtocolAddRootSTLVToBuf [17:33:29]FM_MakeSignedData [17:33:29]FM_MakeSignedData [17:33:29]SAM_PROTO_SignData [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 01 02 [17:33:29]Write to MH i2c: E2 08 00 7A 13 80 0D 01 02 00 00 00 00 06 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 7A 13 00 90 00 01 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=255 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EA 67 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [17:33:29]Write to MH i2c: E2 02 01 7B 13 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EA 67 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 07 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=33 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 86 00 00 35 04 06 00 2B F0 3E 26 3F 65 [17:33:29]Write to MH i2c: E2 24 00 7C 13 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 86 00 00 35 04 06 00 2B F0 3E 26 3F 65 00 00 D9 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [17:33:29]RAPDU: 90 00 [17:33:29]wFMCommunicate OK [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 0D 03 02 [17:33:29]Write to MH i2c: E2 08 00 7D 13 80 0D 03 02 00 00 00 00 0B [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0B 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 0B 00 7D 13 00 CF DA 92 45 05 12 B5 B1 90 00 09 [17:33:29]RAPDU: CF DA 92 45 05 12 B5 B1 90 00 [17:33:29]wFMCommunicate OK [17:33:29]SAM_PROTO_SignData done [17:33:29]FM_MakeSignedData done [17:33:29]CreateOFDProtocolMessage [17:33:29]wFMCommunicate request_size=4 [17:33:29]MH_SAM_APDU [17:33:29]CAPDU: 80 11 00 00 [17:33:29]Write to MH i2c: E2 08 00 7E 13 80 11 00 00 00 00 00 00 0B [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:29]Read from MH i2c: E2 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: E2 17 00 7E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 60 [17:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:33:29]wFMCommunicate OK [17:33:29]CreateOFDProtocolMessage done [17:33:29]OFDSenderStorePacket 34454 [17:33:29]StoreOFDPacket docnum=34454 [17:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 6B BE 1E 01 77 C8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EA 67 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 86 00 00 35 04 06 00 2B F0 3E 26 3F 65 CF DA 92 45 05 12 B5 B1 [17:33:29]CheckFolder [17:33:29]dirname=/storage/ofd_packets [17:33:29]CheckFolder done [17:33:29]ProducePacketName [17:33:29]name=ofd_packets/00034454 [17:33:29]NVStorageSaveData ofd_packets/00034454 [17:33:29]File name is /storage/ofd_packets/00034454 [17:33:29]Write 324 bytes [17:33:29]NVStorageSaveData done [17:33:29]OFDSenderStorePacket done [17:33:29]KKMCreateOFDPacket done [17:33:29]NVStorageSaveData kkm_last_timestamp [17:33:29]File name is /storage/kkm_last_timestamp [17:33:29]Write 4 bytes [17:33:29]NVStorageSaveData done [17:33:29]ExternCall_PrintAddStr [17:33:29]wPrintStart [17:33:29]Write to MH i2c: 01 00 00 7F 13 92 [17:33:29]Write i2c OK [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 07 00 [17:33:29]MH_I2C_Read... [17:33:29]Read from MH i2c: 01 07 00 7F 13 00 00 00 00 00 FF 0F A7 [17:33:29]RasterBufferAndPrint [17:33:29]line Счет N : (3)184223 [17:33:29]line ИНН: 02508201610067 [17:33:29]line Контрольно-Кассовый Чек [17:33:29]line ПРОДАЖА [17:33:29]line Товар: 4640030091669 [17:33:29]line Сигареты ESSE Exchange S [17:33:29]line 1.000 * 138.00 [17:33:29]line = 138.00 [17:33:29]line НДС 12% НСП 1% [17:33:29]line > о реализуемом товаре [17:33:29]line ИТОГО: 138.00 [17:33:29]line НСП 1% : 1.22 [17:33:29]line НДС 12% : 14.65 [17:33:29]line Наличными: 138.00 [17:33:29]line Безнал.: 0.00 [17:33:29]line Место: АЗС № 120 "Партнер Нефть" [17:33:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:33:29]line СНО: Общий режим [17:33:29]line Чек 64 20.06.2024 17:33 [17:33:29]line Смена: 325 ФФД: 1.0 [17:33:29]line ЗНМ: 0300000172 [17:33:29]line РНМ: 0000000000092786 [17:33:29]line Версия ККМ: 001 [17:33:29]line ФМ: 0000000000875095 [17:33:29]line ФД: 34454 [17:33:29]line ФПД: 48310834839397 [17:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173330&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34454&fm=48310834839397&tin=02508201610067®Number=0000000000092786&sum=13800 [17:33:29]line 0 [17:33:29]OFD Sender: Processing packet 34454 [packets to send 8, broken 7] [17:33:29]ProducePacketName [17:33:29]name=ofd_packets/00034454 [17:33:29]OFD Sender: To server: pG, [17:33:29]CommunicateWithHost lk.salyk.kg:30040 [17:33:29]ConnectInit lk.salyk.kg [17:33:29]written 0, free lines is 4095 [17:33:30]Connected sock=10 [17:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 6B BE 1E 01 77 C8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 EA 67 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 86 00 00 35 04 06 00 2B F0 3E 26 3F 65 CF DA 92 45 05 12 B5 B1 [17:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 81 D7 47 00 CA 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 35 30 39 35 10 04 04 00 96 86 00 00 F4 03 04 00 B3 0E 74 66 B6 04 01 00 00 83 2F A7 76 81 18 8F CA [17:33:30]CommunicateWithHost err = 0 [17:33:30]CheckOFDResponse [17:33:30]1017 (14) - 77093643461234 [17:33:30]1041 (16) - 0000000000875095 [17:33:30]1040 (4) - 34454 [17:33:30]1012 (4) - 20.06.2024 11:12 [17:33:30]1206 (1) - 0 [17:33:30]OFD Sender: Remove packet 34454 [17:33:30]ProducePacketName [17:33:30]name=ofd_packets/00034454 [17:33:30]NVStorageDeleteData [17:33:30]Write to MH i2c: 01 00 00 A7 13 BA [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 07 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: 01 07 00 A7 13 00 00 00 00 00 04 0D D2 [17:33:30]RasterBufferAndPrint [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]line [17:33:30]written 0, free lines is 3339 [17:33:30]MH_Cut [17:33:30]Write to MH i2c: D1 01 00 AE 13 01 93 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 01 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: D1 01 00 AE 13 00 92 [17:33:30]Write to MH i2c: 01 00 00 AF 13 C2 [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]OFD Sender: No OFD packet to send [17:33:31]*** Cut start [17:33:31]*** Partial cut [17:33:31]*** CUTSNS_PIN = 1 [17:33:31]*** CUTSNS_PIN = 0 [17:33:31]*** Brake cut motor [17:33:31]Read from MH i2c: 01 [17:33:31]MH_I2C_Read... [17:33:31]*** Stop cut motor [17:33:31]*** Cut end [17:33:31]Read from MH i2c: 01 07 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: 01 07 00 AF 13 00 00 00 00 00 FF 0F D7 [17:33:31]process_action close_receipt done [17:33:31]requested_data is exist [17:33:31]produce_requested_data [17:33:31]requested_item fm.sn is exist - process it [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 11 00 00 [17:33:31]Write to MH i2c: E2 08 00 B0 13 80 11 00 00 00 00 00 00 3D [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 17 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 17 00 B0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 92 [17:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:33:31]wFMCommunicate OK [17:33:31]requested_item fd.num is exist - process it [17:33:31]SAM_PROTO_GetFieldsCounters [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 13 00 00 [17:33:31]Write to MH i2c: E2 08 00 B1 13 80 13 00 00 00 00 00 00 40 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 62 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 62 00 B1 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 86 00 00 0E 04 04 00 45 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 8C [17:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 86 00 00 0E 04 04 00 45 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 [17:33:31]wFMCommunicate OK [17:33:31]SAM_PROTO_GetFieldsCounters done [17:33:31]requested_item shift.num is exist - process it [17:33:31]requested_item shift.opened is exist - process it [17:33:31]req_shift_opened [17:33:31]FM_GetShiftState [17:33:31]SAM_PROTO_GetShiftState [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 13 01 00 [17:33:31]Write to MH i2c: E2 08 00 B2 13 80 13 01 00 00 00 00 00 42 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:31]Read from MH i2c: E2 0E 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 0E 00 B2 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 5A [17:33:31]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:33:31]wFMCommunicate OK [17:33:31]SAM_PROTO_GetShiftState done [17:33:31]FM_GetShiftState done [17:33:31]req_shift_opened done [17:33:31]requested_item shift.open_date is exist - process it [17:33:31]req_shift_open_date [17:33:31]req_shift_open_date done [17:33:31]produce_requested_data done [17:33:31]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34454,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [17:33:31]process_action_free close_receipt [17:33:31]json_value_free [17:33:31]json_value_free done [17:33:31]process_json_proto returns [17:33:31]Send response to host [17:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34454,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [17:33:31]free response buf [17:33:31]execute_script done [17:33:31]execute_script returns [17:33:31]free content buf [17:33:31]Sock 9.Close socket [17:33:31]Sock 9.Thread stoped [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]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:21]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]accept exits with 8 [17:55:51]New connection [17:55:51]New thread 3066654052 created [17:55:51]Thread 3066510692 joined [17:55:51]Waiting for new connection... [17:55:51] Sock 8.Parse request [17:55:51]Sock 8.Check first char [17:55:51]Sock 8.First char is OK [17:55:51]request: POST /json_proto HTTP/1.0 [17:55:51]Method: POST [17:55:51]URL: /json_proto [17:55:51]Method is POST - this is cgi request [17:55:51]url: /json_proto [17:55:51]query_string will be loaded in cgi processing [17:55:51]execute_cgi json_proto POST (null) [17:55:51]execute_cgi path=json_proto method=POST [17:55:51]POST find Content-Length [17:55:51]Host: 172.17.38.134:8080 [17:55:51]Content-Length: 815 [17:55:51]Content-Type: application/json [17:55:51] [17:55:51]POST finish read [17:55:51]Found Content-Length = 815 [17:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184224", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 3.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:51]execute_script... [17:55:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184224", "tax_sys" : 0, "items" : [ { "code": "4870205390987", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 ORGANIC COOLANT Carbox (", "price" : 300.00, "quantity" : 3.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:51]POST & json_proto [17:55:51]process_json_proto [17:55:51]json parsed OK: [17:55:51]protocol is kg_v1.0 [17:55:51]action value=close_receipt [17:55:51]process_action close_receipt [17:55:51]cmd_close_receipt [17:55:51]MH_GetDate [17:55:51]Write to MH i2c: F0 00 00 B3 13 B5 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: F0 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: F0 09 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: F0 09 00 B3 13 00 2A 6D 74 66 13 9C 7C 64 BE [17:55:51]GetLastDocTimeStamp 1718904810 [17:55:51]current date 1718906154 [17:55:51]FM_GetShiftState [17:55:51]SAM_PROTO_GetShiftState [17:55:51]wFMCommunicate request_size=4 [17:55:51]MH_SAM_APDU [17:55:51]CAPDU: 80 13 01 00 [17:55:51]Write to MH i2c: E2 08 00 B4 13 80 13 01 00 00 00 00 00 44 [17:55:51]Write i2c OK [17:55:51]MH_I2C_Read... [17:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:51]Read from MH i2c: E2 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 0E 00 [17:55:51]MH_I2C_Read... [17:55:51]Read from MH i2c: E2 0E 00 B4 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 5C [17:55:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:55:51]wFMCommunicate OK [17:55:51]SAM_PROTO_GetShiftState done [17:55:51]FM_GetShiftState done [17:55:51]opened in 1718843069 [17:55:51]opened+sec_in_day 1718929469 [17:55:51]quantity*price = 90000 [17:55:51]sum+1 = 90001 [17:55:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.00 НСП 1% : 7.96 НДС 12% : 95.57 Наличными: 0.00 Безнал.: 900.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 20.06.2024 17:55 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34455 ФПД: 63664069860585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175554&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34455&fm=63664069860585&tin=02508201610067®Number=0000000000092786&sum=90000 0 [17:55:52]StoreToDocumentArchive [17:55:52]shift 325 fd 34455 [17:55:52]save to /storage/0325/doc_00034455 [17:55:52]save last doc name /storage/0325/doc_00034455 to /storage/kkm_last_doc_name [17:55:52]save OK [17:55:52]Clear old archive folders... [17:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=290 [17:55:52]tlvbuf is 00207870 [17:55:52]SAM_PROTO_ClearQueue [17:55:52]wFMCommunicate request_size=4 [17:55:52]MH_SAM_APDU [17:55:52]CAPDU: 80 09 00 00 [17:55:52]Write to MH i2c: E2 08 00 C1 13 80 09 00 00 00 00 00 00 46 [17:55:52]Write i2c OK [17:55:52]MH_I2C_Read... [17:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [17:55:53]RAPDU: 90 00 [17:55:53]wFMCommunicate OK [17:55:53]SAM_PROTO_ClearQueue done [17:55:53]KKMCreateOFDPacket [17:55:53]OFDProtocolAddRootSTLVToBuf [17:55:53]FM_MakeSignedData [17:55:53]FM_MakeSignedData [17:55:53]SAM_PROTO_SignData [17:55:53]wFMCommunicate request_size=4 [17:55:53]MH_SAM_APDU [17:55:53]CAPDU: 80 0D 01 02 [17:55:53]Write to MH i2c: E2 08 00 C2 13 80 0D 01 02 00 00 00 00 4E [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [17:55:53]RAPDU: 90 00 [17:55:53]wFMCommunicate OK [17:55:53]wFMCommunicate request_size=255 [17:55:53]MH_SAM_APDU [17:55:53]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 90 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 6D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [17:55:53]Write to MH i2c: E2 02 01 C3 13 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 90 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 6D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 08 [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [17:55:53]RAPDU: 90 00 [17:55:53]wFMCommunicate OK [17:55:53]wFMCommunicate request_size=49 [17:55:53]MH_SAM_APDU [17:55:53]CAPDU: 80 0D 02 02 2C 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 86 00 00 35 04 06 00 39 E6 F2 44 DC E9 [17:55:53]Write to MH i2c: E2 34 00 C4 13 80 0D 02 02 2C 00 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 86 00 00 35 04 06 00 39 E6 F2 44 DC E9 00 00 BE [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:53]Read from MH i2c: E2 03 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 03 00 C4 13 00 90 00 4B [17:55:53]RAPDU: 90 00 [17:55:53]wFMCommunicate OK [17:55:53]wFMCommunicate request_size=4 [17:55:53]MH_SAM_APDU [17:55:53]CAPDU: 80 0D 03 02 [17:55:53]Write to MH i2c: E2 08 00 C5 13 80 0D 03 02 00 00 00 00 53 [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 0B 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 0B 00 C5 13 00 15 90 AD 9F 17 2D 0D E9 90 00 7F [17:55:53]RAPDU: 15 90 AD 9F 17 2D 0D E9 90 00 [17:55:53]wFMCommunicate OK [17:55:53]SAM_PROTO_SignData done [17:55:53]FM_MakeSignedData done [17:55:53]CreateOFDProtocolMessage [17:55:53]wFMCommunicate request_size=4 [17:55:53]MH_SAM_APDU [17:55:53]CAPDU: 80 11 00 00 [17:55:53]Write to MH i2c: E2 08 00 C6 13 80 11 00 00 00 00 00 00 53 [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:53]Read from MH i2c: E2 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 17 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: E2 17 00 C6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A8 [17:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:55:53]wFMCommunicate OK [17:55:53]CreateOFDProtocolMessage done [17:55:53]OFDSenderStorePacket 34455 [17:55:53]StoreOFDPacket docnum=34455 [17:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 F4 EA 2E 01 DD 03 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 90 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 6D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 86 00 00 35 04 06 00 39 E6 F2 44 DC E9 15 90 AD 9F 17 2D 0D E9 [17:55:53]CheckFolder [17:55:53]dirname=/storage/ofd_packets [17:55:53]CheckFolder done [17:55:53]ProducePacketName [17:55:53]name=ofd_packets/00034455 [17:55:53]NVStorageSaveData ofd_packets/00034455 [17:55:53]File name is /storage/ofd_packets/00034455 [17:55:53]Write 340 bytes [17:55:53]NVStorageSaveData done [17:55:53]OFDSenderStorePacket done [17:55:53]KKMCreateOFDPacket done [17:55:53]NVStorageSaveData kkm_last_timestamp [17:55:53]File name is /storage/kkm_last_timestamp [17:55:53]Write 4 bytes [17:55:53]NVStorageSaveData done [17:55:53]ExternCall_PrintAddStr [17:55:53]wPrintStart [17:55:53]Write to MH i2c: 01 00 00 C7 13 DA [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 FF 0F EF [17:55:53]RasterBufferAndPrint [17:55:53]line Счет N : (3)184224 [17:55:53]line ИНН: 02508201610067 [17:55:53]line Контрольно-Кассовый Чек [17:55:53]line ПРОДАЖА [17:55:53]line Товар: 4870205390987 [17:55:53]line Антифриз PN -40 ORGANIC COOLANT Carbox ( [17:55:53]line 3.000 * 300.00 [17:55:53]line = 900.00 [17:55:53]line НДС 12% НСП 1% [17:55:53]line > о реализуемом товаре [17:55:53]line ИТОГО: 900.00 [17:55:53]line НСП 1% : 7.96 [17:55:53]line НДС 12% : 95.57 [17:55:53]line Наличными: 0.00 [17:55:53]line Безнал.: 900.00 [17:55:53]line Место: АЗС № 120 "Партнер Нефть" [17:55:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:55:53]line СНО: Общий режим [17:55:53]line Чек 65 20.06.2024 17:55 [17:55:53]line Смена: 325 ФФД: 1.0 [17:55:53]line ЗНМ: 0300000172 [17:55:53]line РНМ: 0000000000092786 [17:55:53]line Версия ККМ: 001 [17:55:53]line Платежная система: Бакай Банк [17:55:53]line ФМ: 0000000000875095 [17:55:53]line ФД: 34455 [17:55:53]line ФПД: 63664069860585 [17:55:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175554&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34455&fm=63664069860585&tin=02508201610067®Number=0000000000092786&sum=90000 [17:55:53]line 0 [17:55:53]OFD Sender: Processing packet 34455 [packets to send 8, broken 7] [17:55:53]ProducePacketName [17:55:53]name=ofd_packets/00034455 [17:55:53]OFD Sender: To server: pG, [17:55:53]CommunicateWithHost lk.salyk.kg:30040 [17:55:53]ConnectInit lk.salyk.kg [17:55:53]written 0, free lines is 4095 [17:55:53]Connected sock=10 [17:55:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 F4 EA 2E 01 DD 03 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 38 37 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 43 61 72 62 6F 78 20 28 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 90 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 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 6D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 86 00 00 35 04 06 00 39 E6 F2 44 DC E9 15 90 AD 9F 17 2D 0D E9 [17:55:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AB C8 47 00 52 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 35 30 39 35 10 04 04 00 97 86 00 00 F4 03 04 00 F3 13 74 66 B6 04 01 00 00 5F 39 38 B7 B0 06 A3 89 [17:55:54]CommunicateWithHost err = 0 [17:55:54]CheckOFDResponse [17:55:54]1017 (14) - 77093643461234 [17:55:54]1041 (16) - 0000000000875095 [17:55:54]1040 (4) - 34455 [17:55:54]1012 (4) - 20.06.2024 11:35 [17:55:54]1206 (1) - 0 [17:55:54]OFD Sender: Remove packet 34455 [17:55:54]ProducePacketName [17:55:54]name=ofd_packets/00034455 [17:55:54]NVStorageDeleteData [17:55:54]Write to MH i2c: 01 00 00 F2 13 05 [17:55:54]Write i2c OK [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: 01 [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: 01 07 00 [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: 01 07 00 F2 13 00 00 00 00 00 E9 0C 01 [17:55:54]RasterBufferAndPrint [17:55:54]line [17:55:54]line [17:55:54]line [17:55:54]line [17:55:54]line [17:55:54]written 0, free lines is 3311 [17:55:54]MH_Cut [17:55:54]Write to MH i2c: D1 01 00 F9 13 01 DE [17:55:54]Write i2c OK [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: D1 [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: D1 01 00 [17:55:54]MH_I2C_Read... [17:55:54]Read from MH i2c: D1 01 00 F9 13 00 DD [17:55:54]Write to MH i2c: 01 00 00 FA 13 0D [17:55:54]Write i2c OK [17:55:54]MH_I2C_Read... [17:55:54]OFD Sender: No OFD packet to send [17:55:55]*** Cut start [17:55:55]*** Partial cut [17:55:55]*** CUTSNS_PIN = 1 [17:55:55]*** CUTSNS_PIN = 0 [17:55:55]*** Brake cut motor [17:55:55]Read from MH i2c: 01 [17:55:55]MH_I2C_Read... [17:55:55]*** Stop cut motor [17:55:55]*** Cut end [17:55:55]Read from MH i2c: 01 07 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: 01 07 00 FA 13 00 00 00 00 00 FF 0F 22 [17:55:55]process_action close_receipt done [17:55:55]requested_data is exist [17:55:55]produce_requested_data [17:55:55]requested_item fm.sn is exist - process it [17:55:55]wFMCommunicate request_size=4 [17:55:55]MH_SAM_APDU [17:55:55]CAPDU: 80 11 00 00 [17:55:55]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [17:55:55]Write i2c OK [17:55:55]MH_I2C_Read... [17:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:55]Read from MH i2c: E2 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 17 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DD [17:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:55:55]wFMCommunicate OK [17:55:55]requested_item fd.num is exist - process it [17:55:55]SAM_PROTO_GetFieldsCounters [17:55:55]wFMCommunicate request_size=4 [17:55:55]MH_SAM_APDU [17:55:55]CAPDU: 80 13 00 00 [17:55:55]Write to MH i2c: E2 08 00 FC 13 80 13 00 00 00 00 00 00 8B [17:55:55]Write i2c OK [17:55:55]MH_I2C_Read... [17:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:55]Read from MH i2c: E2 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 62 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 62 00 FC 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 97 86 00 00 0E 04 04 00 45 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 DB [17:55: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 97 86 00 00 0E 04 04 00 45 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 [17:55:55]wFMCommunicate OK [17:55:55]SAM_PROTO_GetFieldsCounters done [17:55:55]requested_item shift.num is exist - process it [17:55:55]requested_item shift.opened is exist - process it [17:55:55]req_shift_opened [17:55:55]FM_GetShiftState [17:55:55]SAM_PROTO_GetShiftState [17:55:55]wFMCommunicate request_size=4 [17:55:55]MH_SAM_APDU [17:55:55]CAPDU: 80 13 01 00 [17:55:55]Write to MH i2c: E2 08 00 FD 13 80 13 01 00 00 00 00 00 8D [17:55:55]Write i2c OK [17:55:55]MH_I2C_Read... [17:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:55]Read from MH i2c: E2 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 0E 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 0E 00 FD 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A5 [17:55:55]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [17:55:55]wFMCommunicate OK [17:55:55]SAM_PROTO_GetShiftState done [17:55:55]FM_GetShiftState done [17:55:55]req_shift_opened done [17:55:55]requested_item shift.open_date is exist - process it [17:55:55]req_shift_open_date [17:55:55]req_shift_open_date done [17:55:55]produce_requested_data done [17:55:55]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34455,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [17:55:55]process_action_free close_receipt [17:55:55]json_value_free [17:55:55]json_value_free done [17:55:55]process_json_proto returns [17:55:55]Send response to host [17:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34455,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [17:55:55]free response buf [17:55:55]execute_script done [17:55:55]execute_script returns [17:55:55]free content buf [17:55:55]Sock 8.Close socket [17:55:55]Sock 8.Thread stoped [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:18]accept exits with 9 [18:07:18]New connection [18:07:18]New thread 3066510692 created [18:07:18]Thread 3066654052 joined [18:07:18]Waiting for new connection... [18:07:18] Sock 9.Parse request [18:07:18]Sock 9.Check first char [18:07:18]Sock 9.First char is OK [18:07:18]request: POST /json_proto HTTP/1.0 [18:07:18]Method: POST [18:07:18]URL: /json_proto [18:07:18]Method is POST - this is cgi request [18:07:18]url: /json_proto [18:07:18]query_string will be loaded in cgi processing [18:07:18]execute_cgi json_proto POST (null) [18:07:18]execute_cgi path=json_proto method=POST [18:07:18]POST find Content-Length [18:07:18]Host: 172.17.38.134:8080 [18:07:18]Content-Length: 660 [18:07:18]Content-Type: application/json [18:07:18] [18:07:18]POST finish read [18:07:18]Found Content-Length = 660 [18:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184225", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:18]execute_script... [18:07: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)184225", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:18]POST & json_proto [18:07:18]process_json_proto [18:07:18]json parsed OK: [18:07:18]protocol is kg_v1.0 [18:07:18]action value=close_receipt [18:07:18]process_action close_receipt [18:07:18]cmd_close_receipt [18:07:18]MH_GetDate [18:07:18]Write to MH i2c: F0 00 00 FE 13 00 [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 09 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 09 00 FE 13 00 D9 6F 74 66 13 9C 7C 64 BA [18:07:18]GetLastDocTimeStamp 1718906154 [18:07:18]current date 1718906841 [18:07:18]FM_GetShiftState [18:07:18]SAM_PROTO_GetShiftState [18:07:18]wFMCommunicate request_size=4 [18:07:18]MH_SAM_APDU [18:07:18]CAPDU: 80 13 01 00 [18:07:18]Write to MH i2c: E2 08 00 FF 13 80 13 01 00 00 00 00 00 8F [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:18]Read from MH i2c: E2 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: E2 0E 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: E2 0E 00 FF 13 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A7 [18:07:18]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:07:18]wFMCommunicate OK [18:07:18]SAM_PROTO_GetShiftState done [18:07:18]FM_GetShiftState done [18:07:18]opened in 1718843069 [18:07:18]opened+sec_in_day 1718929469 [18:07:18]quantity*price = 6500 [18:07:18]sum+1 = 6501 [18:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 20.06.2024 18:07 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34456 ФПД: 173776453238749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180721&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34456&fm=173776453238749&tin=02508201610067®Number=0000000000092786&sum=6500 0 [18:07:19]StoreToDocumentArchive [18:07:19]shift 325 fd 34456 [18:07:19]save to /storage/0325/doc_00034456 [18:07:19]save last doc name /storage/0325/doc_00034456 to /storage/kkm_last_doc_name [18:07:19]save OK [18:07:19]Clear old archive folders... [18:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=295 [18:07:19]tlvbuf is 00224570 [18:07:19]SAM_PROTO_ClearQueue [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 09 00 00 [18:07:19]Write to MH i2c: E2 08 00 0C 14 80 09 00 00 00 00 00 00 92 [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_ClearQueue done [18:07:20]KKMCreateOFDPacket [18:07:20]OFDProtocolAddRootSTLVToBuf [18:07:20]FM_MakeSignedData [18:07:20]FM_MakeSignedData [18:07:20]SAM_PROTO_SignData [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 01 02 [18:07:20]Write to MH i2c: E2 08 00 0D 14 80 0D 01 02 00 00 00 00 9A [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]wFMCommunicate request_size=255 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D9 6F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [18:07:20]Write to MH i2c: E2 02 01 0E 14 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D9 6F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 D1 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]OFD Sender: No OFD packet to send [18:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]wFMCommunicate request_size=54 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 86 00 00 35 04 06 00 9E 0C 7B C3 FF DD [18:07:20]Write to MH i2c: E2 39 00 0F 14 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 86 00 00 35 04 06 00 9E 0C 7B C3 FF DD 00 00 AF [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 03 02 [18:07:20]Write to MH i2c: E2 08 00 10 14 80 0D 03 02 00 00 00 00 9F [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0B 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0B 00 10 14 00 57 0D 84 4D C9 AA 86 2E 90 00 FC [18:07:20]RAPDU: 57 0D 84 4D C9 AA 86 2E 90 00 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_SignData done [18:07:20]FM_MakeSignedData done [18:07:20]CreateOFDProtocolMessage [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 11 00 00 [18:07:20]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F4 [18:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:07:20]wFMCommunicate OK [18:07:20]CreateOFDProtocolMessage done [18:07:20]OFDSenderStorePacket 34456 [18:07:20]StoreOFDPacket docnum=34456 [18:07:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3B 01 00 00 0F 6B 33 01 3E BF 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D9 6F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 86 00 00 35 04 06 00 9E 0C 7B C3 FF DD 57 0D 84 4D C9 AA 86 2E [18:07:20]CheckFolder [18:07:20]dirname=/storage/ofd_packets [18:07:20]CheckFolder done [18:07:20]ProducePacketName [18:07:20]name=ofd_packets/00034456 [18:07:20]NVStorageSaveData ofd_packets/00034456 [18:07:20]File name is /storage/ofd_packets/00034456 [18:07:20]Write 345 bytes [18:07:20]NVStorageSaveData done [18:07:20]OFDSenderStorePacket done [18:07:20]KKMCreateOFDPacket done [18:07:20]NVStorageSaveData kkm_last_timestamp [18:07:20]File name is /storage/kkm_last_timestamp [18:07:20]Write 4 bytes [18:07:20]NVStorageSaveData done [18:07:20]ExternCall_PrintAddStr [18:07:20]wPrintStart [18:07:20]Write to MH i2c: 01 00 00 12 14 26 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 FF 0F 3B [18:07:20]RasterBufferAndPrint [18:07:20]line Счет N : (3)184225 [18:07:20]line ИНН: 02508201610067 [18:07:20]line Контрольно-Кассовый Чек [18:07:20]line ПРОДАЖА [18:07:20]line Товар: 4620016307540 [18:07:20]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [18:07:20]line 1.000 * 65.00 [18:07:20]line = 65.00 [18:07:20]line НДС 12% НСП 1% [18:07:20]line > о реализуемом товаре [18:07:20]line ИТОГО: 65.00 [18:07:20]line НСП 1% : 0.57 [18:07:20]line НДС 12% : 6.90 [18:07:20]line Наличными: 65.00 [18:07:20]line Безнал.: 0.00 [18:07:20]line Место: АЗС № 120 "Партнер Нефть" [18:07:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:07:20]line СНО: Общий режим [18:07:20]line Чек 66 20.06.2024 18:07 [18:07:20]line Смена: 325 ФФД: 1.0 [18:07:20]line ЗНМ: 0300000172 [18:07:20]line РНМ: 0000000000092786 [18:07:20]line Версия ККМ: 001 [18:07:20]line ФМ: 0000000000875095 [18:07:20]line ФД: 34456 [18:07:20]line ФПД: 173776453238749 [18:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180721&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34456&fm=173776453238749&tin=02508201610067®Number=0000000000092786&sum=6500 [18:07:20]line 0 [18:07:20]OFD Sender: Processing packet 34456 [packets to send 8, broken 7] [18:07:20]ProducePacketName [18:07:20]name=ofd_packets/00034456 [18:07:20]OFD Sender: To server: pG, [18:07:20]CommunicateWithHost lk.salyk.kg:30040 [18:07:20]ConnectInit lk.salyk.kg [18:07:20]written 0, free lines is 4095 [18:07:21]Connected sock=11 [18:07:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3B 01 00 00 0F 6B 33 01 3E BF 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D9 6F 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 86 00 00 35 04 06 00 9E 0C 7B C3 FF DD 57 0D 84 4D C9 AA 86 2E [18:07:21]Write to MH i2c: 01 00 00 3B 14 4F [18:07:21]Write i2c OK [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: 01 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: 01 07 00 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 DE 0C 40 [18:07:21]RasterBufferAndPrint [18:07:21]line [18:07:21]line [18:07:21]line [18:07:21]line [18:07:21]line [18:07:21]written 0, free lines is 3300 [18:07:21]MH_Cut [18:07:21]Write to MH i2c: D1 01 00 42 14 01 28 [18:07:21]Write i2c OK [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: D1 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: D1 01 00 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: D1 01 00 42 14 00 27 [18:07:21]Write to MH i2c: 01 00 00 43 14 57 [18:07:21]Write i2c OK [18:07:21]MH_I2C_Read... [18:07:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 B9 83 47 00 71 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 86 00 00 F4 03 04 00 A3 16 74 66 B6 04 01 00 00 D7 6B 4A 66 CA 78 16 FE [18:07:21]CommunicateWithHost err = 0 [18:07:21]CheckOFDResponse [18:07:21]1017 (14) - 77093643461234 [18:07:21]1041 (16) - 0000000000875095 [18:07:21]1040 (4) - 34456 [18:07:21]1012 (4) - 20.06.2024 11:46 [18:07:21]1206 (1) - 0 [18:07:21]OFD Sender: Remove packet 34456 [18:07:21]ProducePacketName [18:07:21]name=ofd_packets/00034456 [18:07:21]NVStorageDeleteData [18:07:21]OFD Sender: No OFD packet to send [18:07:22]*** Cut start [18:07:22]*** Partial cut [18:07:22]*** CUTSNS_PIN = 1 [18:07:22]*** CUTSNS_PIN = 0 [18:07:22]*** Brake cut motor [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]*** Stop cut motor [18:07:22]*** Cut end [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 FF 0F 6C [18:07:22]process_action close_receipt done [18:07:22]requested_data is exist [18:07:22]produce_requested_data [18:07:22]requested_item fm.sn is exist - process it [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 11 00 00 [18:07:22]Write to MH i2c: E2 08 00 44 14 80 11 00 00 00 00 00 00 D2 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 44 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 27 [18:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:07:22]wFMCommunicate OK [18:07:22]requested_item fd.num is exist - process it [18:07:22]SAM_PROTO_GetFieldsCounters [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 00 00 [18:07:22]Write to MH i2c: E2 08 00 45 14 80 13 00 00 00 00 00 00 D5 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 62 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 62 00 45 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 98 86 00 00 0E 04 04 00 45 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 29 [18:07: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 98 86 00 00 0E 04 04 00 45 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 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetFieldsCounters done [18:07:22]requested_item shift.num is exist - process it [18:07:22]requested_item shift.opened is exist - process it [18:07:22]req_shift_opened [18:07:22]FM_GetShiftState [18:07:22]SAM_PROTO_GetShiftState [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 01 00 [18:07:22]Write to MH i2c: E2 08 00 46 14 80 13 01 00 00 00 00 00 D7 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 46 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EF [18:07:22]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetShiftState done [18:07:22]FM_GetShiftState done [18:07:22]req_shift_opened done [18:07:22]requested_item shift.open_date is exist - process it [18:07:22]req_shift_open_date [18:07:22]req_shift_open_date done [18:07:22]produce_requested_data done [18:07:22]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34456,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:07:22]process_action_free close_receipt [18:07:22]json_value_free [18:07:22]json_value_free done [18:07:22]process_json_proto returns [18:07:22]Send response to host [18:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34456,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:07:22]free response buf [18:07:22]execute_script done [18:07:22]execute_script returns [18:07:22]free content buf [18:07:22]Sock 9.Close socket [18:07:22]Sock 9.Thread stoped [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:54]accept exits with 8 [18:09:54]New connection [18:09:54]New thread 3066654052 created [18:09:54]Thread 3066510692 joined [18:09:54]Waiting for new connection... [18:09:54] Sock 8.Parse request [18:09:54]Sock 8.Check first char [18:09:54]Sock 8.First char is OK [18:09:54]request: POST /json_proto HTTP/1.0 [18:09:54]Method: POST [18:09:54]URL: /json_proto [18:09:54]Method is POST - this is cgi request [18:09:54]url: /json_proto [18:09:54]query_string will be loaded in cgi processing [18:09:54]execute_cgi json_proto POST (null) [18:09:54]execute_cgi path=json_proto method=POST [18:09:54]POST find Content-Length [18:09:54]Host: 172.17.38.134:8080 [18:09:54]Content-Length: 697 [18:09:54]Content-Type: application/json [18:09:54] [18:09:54]POST finish read [18:09:54]Found Content-Length = 697 [18:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184226", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 79.00, "quantity" : 2.000, "sum" : 158.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 158.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:54]execute_script... [18:09:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184226", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 79.00, "quantity" : 2.000, "sum" : 158.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 158.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:54]POST & json_proto [18:09:54]process_json_proto [18:09:54]json parsed OK: [18:09:54]protocol is kg_v1.0 [18:09:54]action value=close_receipt [18:09:54]process_action close_receipt [18:09:54]cmd_close_receipt [18:09:54]MH_GetDate [18:09:54]Write to MH i2c: F0 00 00 47 14 4A [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 09 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: F0 09 00 47 14 00 75 70 74 66 13 9C 7C 64 A1 [18:09:54]GetLastDocTimeStamp 1718906841 [18:09:54]current date 1718906997 [18:09:54]FM_GetShiftState [18:09:54]SAM_PROTO_GetShiftState [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 13 01 00 [18:09:54]Write to MH i2c: E2 08 00 48 14 80 13 01 00 00 00 00 00 D9 [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0E 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0E 00 48 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 F1 [18:09:54]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:09:54]wFMCommunicate OK [18:09:54]SAM_PROTO_GetShiftState done [18:09:54]FM_GetShiftState done [18:09:54]opened in 1718843069 [18:09:54]opened+sec_in_day 1718929469 [18:09:54]quantity*price = 15800 [18:09:54]sum+1 = 15801 [18:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 158.00 НСП 1% : 1.40 НДС 12% : 16.78 Наличными: 158.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 67 20.06.2024 18:09 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34457 ФПД: 66052873184443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180957&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34457&fm=66052873184443&tin=02508201610067®Number=0000000000092786&sum=15800 0 [18:09:55]StoreToDocumentArchive [18:09:55]shift 325 fd 34457 [18:09:55]save to /storage/0325/doc_00034457 [18:09:55]save last doc name /storage/0325/doc_00034457 to /storage/kkm_last_doc_name [18:09:55]save OK [18:09:55]Clear old archive folders... [18:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:09:55]tlvbuf is 00221E90 [18:09:55]SAM_PROTO_ClearQueue [18:09:55]wFMCommunicate request_size=4 [18:09:55]MH_SAM_APDU [18:09:55]CAPDU: 80 09 00 00 [18:09:55]Write to MH i2c: E2 08 00 55 14 80 09 00 00 00 00 00 00 DB [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 55 14 00 90 00 DD [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]SAM_PROTO_ClearQueue done [18:09:56]KKMCreateOFDPacket [18:09:56]OFDProtocolAddRootSTLVToBuf [18:09:56]FM_MakeSignedData [18:09:56]FM_MakeSignedData [18:09:56]SAM_PROTO_SignData [18:09:56]wFMCommunicate request_size=4 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 01 02 [18:09:56]Write to MH i2c: E2 08 00 56 14 80 0D 01 02 00 00 00 00 E3 [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]wFMCommunicate request_size=255 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 00 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 75 70 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:09:56]Write to MH i2c: E2 02 01 57 14 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 00 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 75 70 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 CC [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]wFMCommunicate request_size=53 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 86 00 00 35 04 06 00 3C 13 22 0A E4 BB [18:09:56]Write to MH i2c: E2 38 00 58 14 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 86 00 00 35 04 06 00 3C 13 22 0A E4 BB 00 00 1D [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [18:09:56]RAPDU: 90 00 [18:09:56]wFMCommunicate OK [18:09:56]wFMCommunicate request_size=4 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 0D 03 02 [18:09:56]Write to MH i2c: E2 08 00 59 14 80 0D 03 02 00 00 00 00 E8 [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 0B 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 0B 00 59 14 00 96 20 7B 33 00 89 A4 1C 90 00 96 [18:09:56]RAPDU: 96 20 7B 33 00 89 A4 1C 90 00 [18:09:56]wFMCommunicate OK [18:09:56]SAM_PROTO_SignData done [18:09:56]FM_MakeSignedData done [18:09:56]CreateOFDProtocolMessage [18:09:56]wFMCommunicate request_size=4 [18:09:56]MH_SAM_APDU [18:09:56]CAPDU: 80 11 00 00 [18:09:56]Write to MH i2c: E2 08 00 5A 14 80 11 00 00 00 00 00 00 E8 [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:56]Read from MH i2c: E2 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 17 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: E2 17 00 5A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3D [18:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:09:56]wFMCommunicate OK [18:09:56]CreateOFDProtocolMessage done [18:09:56]OFDSenderStorePacket 34457 [18:09:56]StoreOFDPacket docnum=34457 [18:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 83 9E 32 01 51 AA 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 00 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 75 70 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 86 00 00 35 04 06 00 3C 13 22 0A E4 BB 96 20 7B 33 00 89 A4 1C [18:09:56]CheckFolder [18:09:56]dirname=/storage/ofd_packets [18:09:56]CheckFolder done [18:09:56]ProducePacketName [18:09:56]name=ofd_packets/00034457 [18:09:56]NVStorageSaveData ofd_packets/00034457 [18:09:56]File name is /storage/ofd_packets/00034457 [18:09:56]Write 344 bytes [18:09:56]NVStorageSaveData done [18:09:56]OFDSenderStorePacket done [18:09:56]KKMCreateOFDPacket done [18:09:56]NVStorageSaveData kkm_last_timestamp [18:09:56]File name is /storage/kkm_last_timestamp [18:09:56]Write 4 bytes [18:09:56]NVStorageSaveData done [18:09:56]ExternCall_PrintAddStr [18:09:56]wPrintStart [18:09:56]Write to MH i2c: 01 00 00 5B 14 6F [18:09:56]Write i2c OK [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 [18:09:56]MH_I2C_Read... [18:09:56]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 FF 0F 84 [18:09:56]RasterBufferAndPrint [18:09:56]line Счет N : (3)184226 [18:09:56]line ИНН: 02508201610067 [18:09:56]line Контрольно-Кассовый Чек [18:09:56]line ПРОДАЖА [18:09:56]line Товар: 4603290004817 [18:09:56]line Печ зат Яшкино клубн Крем 182г [18:09:56]line 2.000 * 79.00 [18:09:56]line = 158.00 [18:09:56]line НДС 12% НСП 1% [18:09:56]line > о реализуемом товаре [18:09:56]line ИТОГО: 158.00 [18:09:56]line НСП 1% : 1.40 [18:09:56]line НДС 12% : 16.78 [18:09:56]line Наличными: 158.00 [18:09:56]line Безнал.: 0.00 [18:09:56]line Место: АЗС № 120 "Партнер Нефть" [18:09:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:09:56]line СНО: Общий режим [18:09:56]line Чек 67 20.06.2024 18:09 [18:09:56]line Смена: 325 ФФД: 1.0 [18:09:56]line ЗНМ: 0300000172 [18:09:56]line РНМ: 0000000000092786 [18:09:56]line Версия ККМ: 001 [18:09:56]line ФМ: 0000000000875095 [18:09:56]line ФД: 34457 [18:09:56]line ФПД: 66052873184443 [18:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180957&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34457&fm=66052873184443&tin=02508201610067®Number=0000000000092786&sum=15800 [18:09:56]line 0 [18:09:56]OFD Sender: Processing packet 34457 [packets to send 8, broken 7] [18:09:56]ProducePacketName [18:09:56]name=ofd_packets/00034457 [18:09:56]OFD Sender: To server: pG, [18:09:56]CommunicateWithHost lk.salyk.kg:30040 [18:09:56]ConnectInit lk.salyk.kg [18:09:56]written 0, free lines is 4095 [18:09:56]Connected sock=10 [18:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 83 9E 32 01 51 AA 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 B8 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 00 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 75 70 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 86 00 00 35 04 06 00 3C 13 22 0A E4 BB 96 20 7B 33 00 89 A4 1C [18:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 70 62 47 00 FF 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 35 30 39 35 10 04 04 00 99 86 00 00 F4 03 04 00 3E 17 74 66 B6 04 01 00 00 5F 4E 49 A9 C3 4A 33 71 [18:09:57]CommunicateWithHost err = 0 [18:09:57]CheckOFDResponse [18:09:57]1017 (14) - 77093643461234 [18:09:57]1041 (16) - 0000000000875095 [18:09:57]1040 (4) - 34457 [18:09:57]1012 (4) - 20.06.2024 11:49 [18:09:57]1206 (1) - 0 [18:09:57]OFD Sender: Remove packet 34457 [18:09:57]ProducePacketName [18:09:57]name=ofd_packets/00034457 [18:09:57]NVStorageDeleteData [18:09:57]Write to MH i2c: 01 00 00 84 14 98 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: 01 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: 01 07 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: 01 07 00 84 14 00 00 00 00 00 FD 0C A8 [18:09:57]RasterBufferAndPrint [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]line [18:09:57]written 0, free lines is 3331 [18:09:57]MH_Cut [18:09:57]Write to MH i2c: D1 01 00 8B 14 01 71 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 01 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: D1 01 00 8B 14 00 70 [18:09:57]Write to MH i2c: 01 00 00 8C 14 A0 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]OFD Sender: No OFD packet to send [18:09:58]*** Cut start [18:09:58]*** Partial cut [18:09:58]*** CUTSNS_PIN = 1 [18:09:58]*** CUTSNS_PIN = 0 [18:09:58]*** Brake cut motor [18:09:58]Read from MH i2c: 01 [18:09:58]MH_I2C_Read... [18:09:58]*** Stop cut motor [18:09:58]*** Cut end [18:09:58]Read from MH i2c: 01 07 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 FF 0F B5 [18:09:58]process_action close_receipt done [18:09:58]requested_data is exist [18:09:58]produce_requested_data [18:09:58]requested_item fm.sn is exist - process it [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 11 00 00 [18:09:58]Write to MH i2c: E2 08 00 8D 14 80 11 00 00 00 00 00 00 1B [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 17 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 17 00 8D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 70 [18:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:09:58]wFMCommunicate OK [18:09:58]requested_item fd.num is exist - process it [18:09:58]SAM_PROTO_GetFieldsCounters [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 13 00 00 [18:09:58]Write to MH i2c: E2 08 00 8E 14 80 13 00 00 00 00 00 00 1E [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 62 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 62 00 8E 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 99 86 00 00 0E 04 04 00 45 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 76 [18:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 99 86 00 00 0E 04 04 00 45 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 [18:09:58]wFMCommunicate OK [18:09:58]SAM_PROTO_GetFieldsCounters done [18:09:58]requested_item shift.num is exist - process it [18:09:58]requested_item shift.opened is exist - process it [18:09:58]req_shift_opened [18:09:58]FM_GetShiftState [18:09:58]SAM_PROTO_GetShiftState [18:09:58]wFMCommunicate request_size=4 [18:09:58]MH_SAM_APDU [18:09:58]CAPDU: 80 13 01 00 [18:09:58]Write to MH i2c: E2 08 00 8F 14 80 13 01 00 00 00 00 00 20 [18:09:58]Write i2c OK [18:09:58]MH_I2C_Read... [18:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:58]Read from MH i2c: E2 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 0E 00 [18:09:58]MH_I2C_Read... [18:09:58]Read from MH i2c: E2 0E 00 8F 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 38 [18:09:58]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:09:58]wFMCommunicate OK [18:09:58]SAM_PROTO_GetShiftState done [18:09:58]FM_GetShiftState done [18:09:58]req_shift_opened done [18:09:58]requested_item shift.open_date is exist - process it [18:09:58]req_shift_open_date [18:09:58]req_shift_open_date done [18:09:58]produce_requested_data done [18:09:58]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34457,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:09:58]process_action_free close_receipt [18:09:58]json_value_free [18:09:58]json_value_free done [18:09:58]process_json_proto returns [18:09:58]Send response to host [18:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34457,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:09:58]free response buf [18:09:58]execute_script done [18:09:58]execute_script returns [18:09:58]free content buf [18:09:58]Sock 8.Close socket [18:09:58]Sock 8.Thread stoped [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:48]accept exits with 9 [18:18:48]New connection [18:18:48]New thread 3066510692 created [18:18:48]Thread 3066654052 joined [18:18:48]Waiting for new connection... [18:18:48] Sock 9.Parse request [18:18:48]Sock 9.Check first char [18:18:48]Sock 9.First char is OK [18:18:48]request: POST /json_proto HTTP/1.0 [18:18:48]Method: POST [18:18:48]URL: /json_proto [18:18:48]Method is POST - this is cgi request [18:18:48]url: /json_proto [18:18:48]query_string will be loaded in cgi processing [18:18:48]execute_cgi json_proto POST (null) [18:18:48]execute_cgi path=json_proto method=POST [18:18:48]POST find Content-Length [18:18:48]Host: 172.17.38.134:8080 [18:18:48]Content-Length: 1123 [18:18:48]Content-Type: application/json [18:18:48] [18:18:48]POST finish read [18:18:48]Found Content-Length = 1123 [18:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184227", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 3.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:48]execute_script... [18:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184227", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 135.00, "quantity" : 3.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:48]POST & json_proto [18:18:48]process_json_proto [18:18:48]json parsed OK: [18:18:48]protocol is kg_v1.0 [18:18:48]action value=close_receipt [18:18:48]process_action close_receipt [18:18:48]cmd_close_receipt [18:18:48]MH_GetDate [18:18:48]Write to MH i2c: F0 00 00 90 14 93 [18:18:48]Write i2c OK [18:18:48]MH_I2C_Read... [18:18:48]Read from MH i2c: F0 [18:18:48]MH_I2C_Read... [18:18:48]Read from MH i2c: F0 09 00 [18:18:48]MH_I2C_Read... [18:18:48]Read from MH i2c: F0 09 00 90 14 00 8B 72 74 66 13 9C 7C 64 02 [18:18:48]GetLastDocTimeStamp 1718906997 [18:18:48]current date 1718907531 [18:18:48]FM_GetShiftState [18:18:48]SAM_PROTO_GetShiftState [18:18:48]wFMCommunicate request_size=4 [18:18:48]MH_SAM_APDU [18:18:48]CAPDU: 80 13 01 00 [18:18:48]Write to MH i2c: E2 08 00 91 14 80 13 01 00 00 00 00 00 22 [18:18:48]Write i2c OK [18:18:48]MH_I2C_Read... [18:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:48]Read from MH i2c: E2 [18:18:48]MH_I2C_Read... [18:18:48]Read from MH i2c: E2 0E 00 [18:18:48]MH_I2C_Read... [18:18:48]Read from MH i2c: E2 0E 00 91 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 3A [18:18:48]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:18:48]wFMCommunicate OK [18:18:48]SAM_PROTO_GetShiftState done [18:18:48]FM_GetShiftState done [18:18:48]opened in 1718843069 [18:18:48]opened+sec_in_day 1718929469 [18:18:48]quantity*price = 40500 [18:18:48]sum+1 = 40501 [18:18:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745031 Сигареты Winston Superslims Expand Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745024 Сигареты Winston Superslims Expand Purpl 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 685.00 НСП 1% : 6.06 НДС 12% : 72.75 Наличными: 685.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 68 20.06.2024 18:18 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34458 ФПД: 90459430888823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181851&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34458&fm=90459430888823&tin=02508201610067®Number=0000000000092786&sum=68500 0 [18:18:49]StoreToDocumentArchive [18:18:49]shift 325 fd 34458 [18:18:49]save to /storage/0325/doc_00034458 [18:18:49]save last doc name /storage/0325/doc_00034458 to /storage/kkm_last_doc_name [18:18:49]save OK [18:18:49]Clear old archive folders... [18:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=507 [18:18:49]tlvbuf is 001FD810 [18:18:49]SAM_PROTO_ClearQueue [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 09 00 00 [18:18:49]Write to MH i2c: E2 08 00 9E 14 80 09 00 00 00 00 00 00 24 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 9E 14 00 90 00 26 [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]SAM_PROTO_ClearQueue done [18:18:49]KKMCreateOFDPacket [18:18:49]OFDProtocolAddRootSTLVToBuf [18:18:49]FM_MakeSignedData [18:18:49]FM_MakeSignedData [18:18:49]SAM_PROTO_SignData [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 0D 01 02 [18:18:49]Write to MH i2c: E2 08 00 9F 14 80 0D 01 02 00 00 00 00 2C [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 03 00 9F 14 00 90 00 27 [18:18:49]RAPDU: 90 00 [18:18:49]wFMCommunicate OK [18:18:49]wFMCommunicate request_size=255 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 [18:18:49]Write to MH i2c: E2 02 01 A0 14 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 00 68 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=255 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 02 02 FA 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 1C 00 00 00 00 07 04 06 00 94 0B 01 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 8B 72 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 86 00 [18:18:50]Write to MH i2c: E2 02 01 A1 14 80 0D 02 02 FA 00 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 1C 00 00 00 00 07 04 06 00 94 0B 01 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 8B 72 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 86 00 00 00 4B [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=16 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 45 BA 3E A5 77 [18:18:50]Write to MH i2c: E2 13 00 A2 14 80 0D 02 02 0B 00 00 35 04 06 00 52 45 BA 3E A5 77 00 00 30 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 03 02 [18:18:50]Write to MH i2c: E2 08 00 A3 14 80 0D 03 02 00 00 00 00 32 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0B 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0B 00 A3 14 00 FB 96 4C 4D 35 41 B9 AB 90 00 37 [18:18:50]RAPDU: FB 96 4C 4D 35 41 B9 AB 90 00 [18:18:50]wFMCommunicate OK [18:18:50]SAM_PROTO_SignData done [18:18:50]FM_MakeSignedData done [18:18:50]CreateOFDProtocolMessage [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 11 00 00 [18:18:50]Write to MH i2c: E2 08 00 A4 14 80 11 00 00 00 00 00 00 32 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 17 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 17 00 A4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 87 [18:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:18:50]wFMCommunicate OK [18:18:50]CreateOFDProtocolMessage done [18:18:50]OFDSenderStorePacket 34458 [18:18:50]StoreOFDPacket docnum=34458 [18:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 02 00 00 9E 04 07 02 93 8C 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 1C 00 00 00 00 07 04 06 00 94 0B 01 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 8B 72 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 86 00 00 35 04 06 00 52 45 BA 3E A5 77 FB 96 4C 4D 35 41 B9 AB [18:18:50]CheckFolder [18:18:50]dirname=/storage/ofd_packets [18:18:50]CheckFolder done [18:18:50]ProducePacketName [18:18:50]name=ofd_packets/00034458 [18:18:50]NVStorageSaveData ofd_packets/00034458 [18:18:50]File name is /storage/ofd_packets/00034458 [18:18:50]Write 557 bytes [18:18:50]NVStorageSaveData done [18:18:50]OFDSenderStorePacket done [18:18:50]KKMCreateOFDPacket done [18:18:50]NVStorageSaveData kkm_last_timestamp [18:18:50]File name is /storage/kkm_last_timestamp [18:18:50]Write 4 bytes [18:18:50]NVStorageSaveData done [18:18:50]ExternCall_PrintAddStr [18:18:50]wPrintStart [18:18:50]Write to MH i2c: 01 00 00 A5 14 B9 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 FF 0F CE [18:18:50]RasterBufferAndPrint [18:18:50]line Счет N : (3)184227 [18:18:50]line ИНН: 02508201610067 [18:18:50]line Контрольно-Кассовый Чек [18:18:50]line ПРОДАЖА [18:18:50]line Товар: 48741224 [18:18:50]line Сигареты Winston Super Slims Blue [18:18:50]line 3.000 * 135.00 [18:18:50]line = 405.00 [18:18:50]line НДС 12% НСП 1% [18:18:50]line > о реализуемом товаре [18:18:50]line Товар: 48745031 [18:18:50]line Сигареты Winston Superslims Expand Blue [18:18:50]line 1.000 * 140.00 [18:18:50]line = 140.00 [18:18:50]line НДС 12% НСП 1% [18:18:50]line > о реализуемом товаре [18:18:50]line Товар: 48745024 [18:18:50]line Сигареты Winston Superslims Expand Purpl [18:18:50]line 1.000 * 140.00 [18:18:50]line = 140.00 [18:18:50]line НДС 12% НСП 1% [18:18:50]line > о реализуемом товаре [18:18:50]line ИТОГО: 685.00 [18:18:50]line НСП 1% : 6.06 [18:18:50]line НДС 12% : 72.75 [18:18:50]line Наличными: 685.00 [18:18:50]line Безнал.: 0.00 [18:18:50]line Место: АЗС № 120 "Партнер Нефть" [18:18:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:18:50]line СНО: Общий режим [18:18:50]line Чек 68 20.06.2024 18:18 [18:18:50]line Смена: 325 ФФД: 1.0 [18:18:50]line ЗНМ: 0300000172 [18:18:50]line РНМ: 0000000000092786 [18:18:50]line Версия ККМ: 001 [18:18:50]line ФМ: 0000000000875095 [18:18:50]line ФД: 34458 [18:18:50]line ФПД: 90459430888823 [18:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181851&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34458&fm=90459430888823&tin=02508201610067®Number=0000000000092786&sum=68500 [18:18:50]OFD Sender: Processing packet 34458 [packets to send 8, broken 7] [18:18:50]ProducePacketName [18:18:50]name=ofd_packets/00034458 [18:18:50]OFD Sender: To server: pG, [18:18:50]CommunicateWithHost lk.salyk.kg:30040 [18:18:50]ConnectInit lk.salyk.kg [18:18:50]line 0 [18:18:50]written 0, free lines is 4095 [18:18:50]Connected sock=10 [18:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 02 00 00 9E 04 07 02 93 8C 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 1C 00 00 00 00 07 04 06 00 94 0B 01 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 8B 72 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 86 00 00 35 04 06 00 52 45 BA 3E A5 77 FB 96 4C 4D 35 41 B9 AB [18:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 46 49 47 00 22 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 86 00 00 F4 03 04 00 54 19 74 66 B6 04 01 00 00 A5 D6 B6 A0 6B C6 3A 55 [18:18:51]CommunicateWithHost err = 0 [18:18:51]CheckOFDResponse [18:18:51]1017 (14) - 77093643461234 [18:18:51]1041 (16) - 0000000000875095 [18:18:51]1040 (4) - 34458 [18:18:51]1012 (4) - 20.06.2024 11:58 [18:18:51]1206 (1) - 0 [18:18:51]OFD Sender: Remove packet 34458 [18:18:51]ProducePacketName [18:18:51]name=ofd_packets/00034458 [18:18:51]NVStorageDeleteData [18:18:51]Write to MH i2c: 01 00 00 DC 14 F0 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 DC 14 00 00 00 00 00 13 0C 16 [18:18:51]RasterBufferAndPrint [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]written 0, free lines is 3097 [18:18:51]MH_Cut [18:18:51]Write to MH i2c: D1 01 00 E3 14 01 C9 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 01 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 01 00 E3 14 00 C8 [18:18:51]Write to MH i2c: 01 00 00 E4 14 F8 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]OFD Sender: No OFD packet to send [18:18:52]*** Cut start [18:18:52]*** Partial cut [18:18:52]*** CUTSNS_PIN = 1 [18:18:52]*** CUTSNS_PIN = 0 [18:18:52]*** Brake cut motor [18:18:52]Read from MH i2c: 01 [18:18:52]MH_I2C_Read... [18:18:52]*** Stop cut motor [18:18:52]*** Cut end [18:18:52]Read from MH i2c: 01 07 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 FF 0F 0D [18:18:52]process_action close_receipt done [18:18:52]requested_data is exist [18:18:52]produce_requested_data [18:18:52]requested_item fm.sn is exist - process it [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 11 00 00 [18:18:52]Write to MH i2c: E2 08 00 E5 14 80 11 00 00 00 00 00 00 73 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 E5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C8 [18:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:18:52]wFMCommunicate OK [18:18:52]requested_item fd.num is exist - process it [18:18:52]SAM_PROTO_GetFieldsCounters [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 13 00 00 [18:18:52]Write to MH i2c: E2 08 00 E6 14 80 13 00 00 00 00 00 00 76 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:53]Read from MH i2c: E2 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 62 00 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 62 00 E6 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9A 86 00 00 0E 04 04 00 45 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 D2 [18:18: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9A 86 00 00 0E 04 04 00 45 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 [18:18:53]wFMCommunicate OK [18:18:53]SAM_PROTO_GetFieldsCounters done [18:18:53]requested_item shift.num is exist - process it [18:18:53]requested_item shift.opened is exist - process it [18:18:53]req_shift_opened [18:18:53]FM_GetShiftState [18:18:53]SAM_PROTO_GetShiftState [18:18:53]wFMCommunicate request_size=4 [18:18:53]MH_SAM_APDU [18:18:53]CAPDU: 80 13 01 00 [18:18:53]Write to MH i2c: E2 08 00 E7 14 80 13 01 00 00 00 00 00 78 [18:18:53]Write i2c OK [18:18:53]MH_I2C_Read... [18:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:53]Read from MH i2c: E2 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 E7 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 90 [18:18:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:18:53]wFMCommunicate OK [18:18:53]SAM_PROTO_GetShiftState done [18:18:53]FM_GetShiftState done [18:18:53]req_shift_opened done [18:18:53]requested_item shift.open_date is exist - process it [18:18:53]req_shift_open_date [18:18:53]req_shift_open_date done [18:18:53]produce_requested_data done [18:18:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34458,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:18:53]process_action_free close_receipt [18:18:53]json_value_free [18:18:53]json_value_free done [18:18:53]process_json_proto returns [18:18:53]Send response to host [18:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34458,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:18:53]free response buf [18:18:53]execute_script done [18:18:53]execute_script returns [18:18:53]free content buf [18:18:53]Sock 9.Close socket [18:18:53]Sock 9.Thread stoped [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]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:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:13]accept exits with 8 [18:26:13]New connection [18:26:13]New thread 3066654052 created [18:26:13]Thread 3066510692 joined [18:26:13]Waiting for new connection... [18:26:13] Sock 8.Parse request [18:26:13]Sock 8.Check first char [18:26:13]Sock 8.First char is OK [18:26:13]request: POST /json_proto HTTP/1.0 [18:26:13]Method: POST [18:26:13]URL: /json_proto [18:26:13]Method is POST - this is cgi request [18:26:13]url: /json_proto [18:26:13]query_string will be loaded in cgi processing [18:26:13]execute_cgi json_proto POST (null) [18:26:13]execute_cgi path=json_proto method=POST [18:26:13]POST find Content-Length [18:26:13]Host: 172.17.38.134:8080 [18:26:13]Content-Length: 621 [18:26:13]Content-Type: application/json [18:26:13] [18:26:13]POST finish read [18:26:13]Found Content-Length = 621 [18:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184228", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [18:26:13]execute_script... [18:26:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184228", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [18:26:13]POST & json_proto [18:26:13]process_json_proto [18:26:13]json parsed OK: [18:26:13]protocol is kg_v1.0 [18:26:13]action value=close_receipt [18:26:13]process_action close_receipt [18:26:13]cmd_close_receipt [18:26:13]MH_GetDate [18:26:13]Write to MH i2c: F0 00 00 E8 14 EB [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: F0 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: F0 09 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: F0 09 00 E8 14 00 48 74 74 66 13 9C 7C 64 19 [18:26:13]GetLastDocTimeStamp 1718907531 [18:26:13]current date 1718907976 [18:26:13]FM_GetShiftState [18:26:13]SAM_PROTO_GetShiftState [18:26:13]wFMCommunicate request_size=4 [18:26:13]MH_SAM_APDU [18:26:13]CAPDU: 80 13 01 00 [18:26:13]Write to MH i2c: E2 08 00 E9 14 80 13 01 00 00 00 00 00 7A [18:26:13]Write i2c OK [18:26:13]MH_I2C_Read... [18:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:13]Read from MH i2c: E2 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 0E 00 [18:26:13]MH_I2C_Read... [18:26:13]Read from MH i2c: E2 0E 00 E9 14 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 92 [18:26:13]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:26:13]wFMCommunicate OK [18:26:13]SAM_PROTO_GetShiftState done [18:26:13]FM_GetShiftState done [18:26:13]opened in 1718843069 [18:26:13]opened+sec_in_day 1718929469 [18:26:13]quantity*price = 14000 [18:26:13]sum+1 = 14001 [18:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 69 20.06.2024 18:26 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34459 ФПД: 265407502497556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34459&fm=265407502497556&tin=02508201610067®Number=0000000000092786&sum=14000 0 [18:26:14]StoreToDocumentArchive [18:26:14]shift 325 fd 34459 [18:26:14]save to /storage/0325/doc_00034459 [18:26:14]save last doc name /storage/0325/doc_00034459 to /storage/kkm_last_doc_name [18:26:14]save OK [18:26:14]Clear old archive folders... [18:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:26:14]tlvbuf is 00261820 [18:26:14]SAM_PROTO_ClearQueue [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 09 00 00 [18:26:14]Write to MH i2c: E2 08 00 F6 14 80 09 00 00 00 00 00 00 7C [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [18:26:14]RAPDU: 90 00 [18:26:14]wFMCommunicate OK [18:26:14]SAM_PROTO_ClearQueue done [18:26:14]KKMCreateOFDPacket [18:26:14]OFDProtocolAddRootSTLVToBuf [18:26:14]FM_MakeSignedData [18:26:14]FM_MakeSignedData [18:26:14]SAM_PROTO_SignData [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 0D 01 02 [18:26:14]Write to MH i2c: E2 08 00 F7 14 80 0D 01 02 00 00 00 00 84 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [18:26:15]RAPDU: 90 00 [18:26:15]wFMCommunicate OK [18:26:15]wFMCommunicate request_size=255 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 45 00 00 00 F4 03 04 00 48 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [18:26:15]Write to MH i2c: E2 02 01 F8 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 45 00 00 00 F4 03 04 00 48 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A1 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [18:26:15]RAPDU: 90 00 [18:26:15]wFMCommunicate OK [18:26:15]wFMCommunicate request_size=32 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 86 00 00 35 04 06 00 F1 62 FF E8 37 14 [18:26:15]Write to MH i2c: E2 23 00 F9 14 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 86 00 00 35 04 06 00 F1 62 FF E8 37 14 00 00 8C [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [18:26:15]RAPDU: 90 00 [18:26:15]wFMCommunicate OK [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 0D 03 02 [18:26:15]Write to MH i2c: E2 08 00 FA 14 80 0D 03 02 00 00 00 00 89 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 0B 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 0B 00 FA 14 00 2D 11 7F 3D 5B 67 1A 54 90 00 B4 [18:26:15]RAPDU: 2D 11 7F 3D 5B 67 1A 54 90 00 [18:26:15]wFMCommunicate OK [18:26:15]SAM_PROTO_SignData done [18:26:15]FM_MakeSignedData done [18:26:15]CreateOFDProtocolMessage [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 11 00 00 [18:26:15]Write to MH i2c: E2 08 00 FB 14 80 11 00 00 00 00 00 00 89 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 17 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 17 00 FB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DE [18:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:26:15]wFMCommunicate OK [18:26:15]CreateOFDProtocolMessage done [18:26:15]OFDSenderStorePacket 34459 [18:26:15]StoreOFDPacket docnum=34459 [18:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 2C 82 1D 01 70 1C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 45 00 00 00 F4 03 04 00 48 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 86 00 00 35 04 06 00 F1 62 FF E8 37 14 2D 11 7F 3D 5B 67 1A 54 [18:26:15]CheckFolder [18:26:15]dirname=/storage/ofd_packets [18:26:15]CheckFolder done [18:26:15]ProducePacketName [18:26:15]name=ofd_packets/00034459 [18:26:15]NVStorageSaveData ofd_packets/00034459 [18:26:15]File name is /storage/ofd_packets/00034459 [18:26:15]Write 323 bytes [18:26:15]NVStorageSaveData done [18:26:15]OFDSenderStorePacket done [18:26:15]KKMCreateOFDPacket done [18:26:15]NVStorageSaveData kkm_last_timestamp [18:26:15]File name is /storage/kkm_last_timestamp [18:26:15]Write 4 bytes [18:26:15]NVStorageSaveData done [18:26:15]ExternCall_PrintAddStr [18:26:15]wPrintStart [18:26:15]Write to MH i2c: 01 00 00 FC 14 10 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 07 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: 01 07 00 FC 14 00 00 00 00 00 FF 0F 25 [18:26:15]RasterBufferAndPrint [18:26:15]line Счет N : (3)184228 [18:26:15]line ИНН: 02508201610067 [18:26:15]line Контрольно-Кассовый Чек [18:26:15]line ПРОДАЖА [18:26:15]line Товар: 48743570 [18:26:15]line Сигареты Winston XStyle Blue [18:26:15]line 1.000 * 140.00 [18:26:15]line = 140.00 [18:26:15]line НДС 12% НСП 1% [18:26:15]line > о реализуемом товаре [18:26:15]line ИТОГО: 140.00 [18:26:15]line НСП 1% : 1.24 [18:26:15]line НДС 12% : 14.87 [18:26:15]line Наличными: 140.00 [18:26:15]line Безнал.: 0.00 [18:26:15]line Место: АЗС № 120 "Партнер Нефть" [18:26:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:26:15]line СНО: Общий режим [18:26:15]line Чек 69 20.06.2024 18:26 [18:26:15]line Смена: 325 ФФД: 1.0 [18:26:15]line ЗНМ: 0300000172 [18:26:15]line РНМ: 0000000000092786 [18:26:15]line Версия ККМ: 001 [18:26:15]line ФМ: 0000000000875095 [18:26:15]line ФД: 34459 [18:26:15]line ФПД: 265407502497556 [18:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34459&fm=265407502497556&tin=02508201610067®Number=0000000000092786&sum=14000 [18:26:15]line 0 [18:26:15]OFD Sender: Processing packet 34459 [packets to send 8, broken 7] [18:26:15]ProducePacketName [18:26:15]name=ofd_packets/00034459 [18:26:15]OFD Sender: To server: pG, [18:26:15]CommunicateWithHost lk.salyk.kg:30040 [18:26:15]ConnectInit lk.salyk.kg [18:26:15]written 0, free lines is 4095 [18:26:15]Connected sock=10 [18:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 2C 82 1D 01 70 1C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 45 00 00 00 F4 03 04 00 48 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 86 00 00 35 04 06 00 F1 62 FF E8 37 14 2D 11 7F 3D 5B 67 1A 54 [18:26:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DD B1 47 00 AB D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 86 00 00 F4 03 04 00 11 1B 74 66 B6 04 01 00 00 00 63 05 E1 30 67 AB E7 [18:26:16]CommunicateWithHost err = 0 [18:26:16]CheckOFDResponse [18:26:16]1017 (14) - 77093643461234 [18:26:16]1041 (16) - 0000000000875095 [18:26:16]1040 (4) - 34459 [18:26:16]1012 (4) - 20.06.2024 12:05 [18:26:16]1206 (1) - 0 [18:26:16]OFD Sender: Remove packet 34459 [18:26:16]ProducePacketName [18:26:16]name=ofd_packets/00034459 [18:26:16]NVStorageDeleteData [18:26:16]Write to MH i2c: 01 00 00 24 15 39 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 07 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 07 00 24 15 00 00 00 00 00 06 0D 53 [18:26:16]RasterBufferAndPrint [18:26:16]line [18:26:16]line [18:26:16]line [18:26:16]line [18:26:16]line [18:26:16]written 0, free lines is 3343 [18:26:16]MH_Cut [18:26:16]Write to MH i2c: D1 01 00 2B 15 01 12 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: D1 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: D1 01 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: D1 01 00 2B 15 00 11 [18:26:16]Write to MH i2c: 01 00 00 2C 15 41 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]OFD Sender: No OFD packet to send [18:26:16]*** Cut start [18:26:16]*** Partial cut [18:26:16]*** CUTSNS_PIN = 1 [18:26:16]*** CUTSNS_PIN = 0 [18:26:17]*** Brake cut motor [18:26:17]Read from MH i2c: 01 [18:26:17]MH_I2C_Read... [18:26:17]*** Stop cut motor [18:26:17]*** Cut end [18:26:17]Read from MH i2c: 01 07 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 FF 0F 56 [18:26:17]process_action close_receipt done [18:26:17]requested_data is exist [18:26:17]produce_requested_data [18:26:17]requested_item fm.sn is exist - process it [18:26:17]wFMCommunicate request_size=4 [18:26:17]MH_SAM_APDU [18:26:17]CAPDU: 80 11 00 00 [18:26:17]Write to MH i2c: E2 08 00 2D 15 80 11 00 00 00 00 00 00 BC [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:17]Read from MH i2c: E2 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 17 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 17 00 2D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 11 [18:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:26:17]wFMCommunicate OK [18:26:17]requested_item fd.num is exist - process it [18:26:17]SAM_PROTO_GetFieldsCounters [18:26:17]wFMCommunicate request_size=4 [18:26:17]MH_SAM_APDU [18:26:17]CAPDU: 80 13 00 00 [18:26:17]Write to MH i2c: E2 08 00 2E 15 80 13 00 00 00 00 00 00 BF [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:17]Read from MH i2c: E2 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 62 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 62 00 2E 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9B 86 00 00 0E 04 04 00 45 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 1F [18:26: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9B 86 00 00 0E 04 04 00 45 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 [18:26:17]wFMCommunicate OK [18:26:17]SAM_PROTO_GetFieldsCounters done [18:26:17]requested_item shift.num is exist - process it [18:26:17]requested_item shift.opened is exist - process it [18:26:17]req_shift_opened [18:26:17]FM_GetShiftState [18:26:17]SAM_PROTO_GetShiftState [18:26:17]wFMCommunicate request_size=4 [18:26:17]MH_SAM_APDU [18:26:17]CAPDU: 80 13 01 00 [18:26:17]Write to MH i2c: E2 08 00 2F 15 80 13 01 00 00 00 00 00 C1 [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:17]Read from MH i2c: E2 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 0E 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: E2 0E 00 2F 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 D9 [18:26:17]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:26:17]wFMCommunicate OK [18:26:17]SAM_PROTO_GetShiftState done [18:26:17]FM_GetShiftState done [18:26:17]req_shift_opened done [18:26:17]requested_item shift.open_date is exist - process it [18:26:17]req_shift_open_date [18:26:17]req_shift_open_date done [18:26:17]produce_requested_data done [18:26:17]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34459,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:26:17]process_action_free close_receipt [18:26:17]json_value_free [18:26:17]json_value_free done [18:26:17]process_json_proto returns [18:26:17]Send response to host [18:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34459,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:26:17]free response buf [18:26:17]execute_script done [18:26:17]execute_script returns [18:26:17]free content buf [18:26:17]Sock 8.Close socket [18:26:17]Sock 8.Thread stoped [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:46]accept exits with 9 [18:26:46]New connection [18:26:46]New thread 3066510692 created [18:26:46]Thread 3066654052 joined [18:26:46]Waiting for new connection... [18:26:46] Sock 9.Parse request [18:26:46]Sock 9.Check first char [18:26:46]Sock 9.First char is OK [18:26:46]request: POST /json_proto HTTP/1.0 [18:26:46]Method: POST [18:26:46]URL: /json_proto [18:26:46]Method is POST - this is cgi request [18:26:46]url: /json_proto [18:26:46]query_string will be loaded in cgi processing [18:26:46]execute_cgi json_proto POST (null) [18:26:46]execute_cgi path=json_proto method=POST [18:26:46]POST find Content-Length [18:26:46]Host: 172.17.38.134:8080 [18:26:46]Content-Length: 1192 [18:26:46]Content-Type: application/json [18:26:46] [18:26:46]POST finish read [18:26:46]Found Content-Length = 1192 [18:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184229", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190044", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:46]execute_script... [18:26:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184229", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4670003190044", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 5\u043B", "price" : 1000.00, "quantity" : 1.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:46]POST & json_proto [18:26:46]process_json_proto [18:26:46]json parsed OK: [18:26:46]protocol is kg_v1.0 [18:26:46]action value=close_receipt [18:26:46]process_action close_receipt [18:26:46]cmd_close_receipt [18:26:46]MH_GetDate [18:26:46]Write to MH i2c: F0 00 00 30 15 34 [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 09 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 09 00 30 15 00 69 74 74 66 13 9C 7C 64 83 [18:26:46]GetLastDocTimeStamp 1718907976 [18:26:46]current date 1718908009 [18:26:46]FM_GetShiftState [18:26:46]SAM_PROTO_GetShiftState [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 13 01 00 [18:26:46]Write to MH i2c: E2 08 00 31 15 80 13 01 00 00 00 00 00 C3 [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 31 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 DB [18:26:46]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:26:46]wFMCommunicate OK [18:26:46]SAM_PROTO_GetShiftState done [18:26:46]FM_GetShiftState done [18:26:46]opened in 1718843069 [18:26:46]opened+sec_in_day 1718929469 [18:26:46]quantity*price = 12000 [18:26:46]sum+1 = 12001 [18:26:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4670003190044 Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 5л 1.000 * 1000.00 = 1000.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1120.00 НСП 1% : 9.91 НДС 12% : 118.93 Наличными: 0.00 Безнал.: 1120.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 70 20.06.2024 18:26 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34460 ФПД: 60068352300193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182649&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34460&fm=60068352300193&tin=02508201610067®Number=0000000000092786&sum=112000 0 [18:26:48]StoreToDocumentArchive [18:26:48]shift 325 fd 34460 [18:26:48]save to /storage/0325/doc_00034460 [18:26:48]save last doc name /storage/0325/doc_00034460 to /storage/kkm_last_doc_name [18:26:48]save OK [18:26:48]Clear old archive folders... [18:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=434 [18:26:48]tlvbuf is 00222230 [18:26:48]SAM_PROTO_ClearQueue [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 09 00 00 [18:26:48]Write to MH i2c: E2 08 00 3E 15 80 09 00 00 00 00 00 00 C5 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [18:26:48]RAPDU: 90 00 [18:26:48]wFMCommunicate OK [18:26:48]SAM_PROTO_ClearQueue done [18:26:48]KKMCreateOFDPacket [18:26:48]OFDProtocolAddRootSTLVToBuf [18:26:48]FM_MakeSignedData [18:26:48]FM_MakeSignedData [18:26:48]SAM_PROTO_SignData [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 0D 01 02 [18:26:48]Write to MH i2c: E2 08 00 3F 15 80 0D 01 02 00 00 00 00 CD [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [18:26:48]RAPDU: 90 00 [18:26:48]wFMCommunicate OK [18:26:48]wFMCommunicate request_size=255 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 0D 02 02 FA 03 00 B2 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 34 34 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 [18:26:48]Write to MH i2c: E2 02 01 40 15 80 0D 02 02 FA 00 03 00 B2 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 34 34 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 00 00 E3 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:48]Read from MH i2c: E2 03 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [18:26:48]RAPDU: 90 00 [18:26:48]wFMCommunicate OK [18:26:48]wFMCommunicate request_size=193 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 0D 02 02 BC 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 69 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 86 00 00 35 04 06 00 36 A1 C0 CD 14 A1 [18:26:48]Write to MH i2c: E2 C4 00 41 15 80 0D 02 02 BC 00 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 69 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 86 00 00 35 04 06 00 36 A1 C0 CD 14 A1 00 00 E3 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [18:26:48]RAPDU: 90 00 [18:26:48]wFMCommunicate OK [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 0D 03 02 [18:26:48]Write to MH i2c: E2 08 00 42 15 80 0D 03 02 00 00 00 00 D2 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0B 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0B 00 42 15 00 D9 0C 3C 7E EA CB B9 8F 90 00 6F [18:26:48]RAPDU: D9 0C 3C 7E EA CB B9 8F 90 00 [18:26:48]wFMCommunicate OK [18:26:48]SAM_PROTO_SignData done [18:26:48]FM_MakeSignedData done [18:26:48]CreateOFDProtocolMessage [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 11 00 00 [18:26:48]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 17 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 27 [18:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:26:48]wFMCommunicate OK [18:26:48]CreateOFDProtocolMessage done [18:26:48]OFDSenderStorePacket 34460 [18:26:48]StoreOFDPacket docnum=34460 [18:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C6 01 00 00 00 F0 BE 01 BF 29 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 34 34 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 69 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 86 00 00 35 04 06 00 36 A1 C0 CD 14 A1 D9 0C 3C 7E EA CB B9 8F [18:26:48]CheckFolder [18:26:48]dirname=/storage/ofd_packets [18:26:48]CheckFolder done [18:26:48]ProducePacketName [18:26:48]name=ofd_packets/00034460 [18:26:48]NVStorageSaveData ofd_packets/00034460 [18:26:48]File name is /storage/ofd_packets/00034460 [18:26:48]Write 484 bytes [18:26:48]NVStorageSaveData done [18:26:48]OFDSenderStorePacket done [18:26:48]KKMCreateOFDPacket done [18:26:48]NVStorageSaveData kkm_last_timestamp [18:26:48]File name is /storage/kkm_last_timestamp [18:26:48]Write 4 bytes [18:26:48]NVStorageSaveData done [18:26:48]ExternCall_PrintAddStr [18:26:48]wPrintStart [18:26:48]Write to MH i2c: 01 00 00 44 15 59 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 FF 0F 6E [18:26:48]RasterBufferAndPrint [18:26:48]line Счет N : (3)184229 [18:26:48]line ИНН: 02508201610067 [18:26:48]line Контрольно-Кассовый Чек [18:26:48]line ПРОДАЖА [18:26:48]line Товар: 5449000027474 [18:26:48]line Напиток FuzeTea зел чай манго,ромашка 1л [18:26:48]line 1.000 * 120.00 [18:26:48]line = 120.00 [18:26:48]line НДС 12% НСП 1% [18:26:48]line > о реализуемом товаре [18:26:48]line Товар: 4670003190044 [18:26:48]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 5л [18:26:48]line 1.000 * 1000.00 [18:26:48]line = 1000.00 [18:26:48]line НДС 12% НСП 1% [18:26:48]line > о реализуемом товаре [18:26:48]line ИТОГО: 1120.00 [18:26:48]line НСП 1% : 9.91 [18:26:48]line НДС 12% : 118.93 [18:26:48]line Наличными: 0.00 [18:26:48]line Безнал.: 1120.00 [18:26:48]line Место: АЗС № 120 "Партнер Нефть" [18:26:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:26:48]line СНО: Общий режим [18:26:48]line Чек 70 20.06.2024 18:26 [18:26:48]line Смена: 325 ФФД: 1.0 [18:26:48]line ЗНМ: 0300000172 [18:26:48]line РНМ: 0000000000092786 [18:26:48]line Версия ККМ: 001 [18:26:48]line Платежная система: Бакай Банк [18:26:48]line ФМ: 0000000000875095 [18:26:48]line ФД: 34460 [18:26:48]line ФПД: 60068352300193 [18:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182649&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34460&fm=60068352300193&tin=02508201610067®Number=0000000000092786&sum=112000 [18:26:49]OFD Sender: Processing packet 34460 [packets to send 8, broken 7] [18:26:49]ProducePacketName [18:26:49]name=ofd_packets/00034460 [18:26:49]OFD Sender: To server: pG, [18:26:49]CommunicateWithHost lk.salyk.kg:30040 [18:26:49]ConnectInit lk.salyk.kg [18:26:49]line 0 [18:26:49]written 0, free lines is 4095 [18:26:49]Connected sock=10 [18:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 C6 01 00 00 00 F0 BE 01 BF 29 5A 03 01 00 03 00 B2 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 34 34 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 86 01 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 69 74 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 86 00 00 35 04 06 00 36 A1 C0 CD 14 A1 D9 0C 3C 7E EA CB B9 8F [18:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7F 1C 47 00 CC 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 86 00 00 F4 03 04 00 33 1B 74 66 B6 04 01 00 00 4C D8 F1 43 88 9C F4 DE [18:26:49]CommunicateWithHost err = 0 [18:26:49]CheckOFDResponse [18:26:49]1017 (14) - 77093643461234 [18:26:49]1041 (16) - 0000000000875095 [18:26:49]1040 (4) - 34460 [18:26:49]1012 (4) - 20.06.2024 12:06 [18:26:49]1206 (1) - 0 [18:26:49]OFD Sender: Remove packet 34460 [18:26:49]ProducePacketName [18:26:49]name=ofd_packets/00034460 [18:26:49]NVStorageDeleteData [18:26:49]Write to MH i2c: 01 00 00 76 15 8B [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 07 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 7A 0C 18 [18:26:49]RasterBufferAndPrint [18:26:49]line [18:26:49]line [18:26:49]line [18:26:49]line [18:26:49]line [18:26:49]written 0, free lines is 3199 [18:26:49]MH_Cut [18:26:49]Write to MH i2c: D1 01 00 7D 15 01 64 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: D1 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: D1 01 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: D1 01 00 7D 15 00 63 [18:26:49]Write to MH i2c: 01 00 00 7E 15 93 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:50]OFD Sender: No OFD packet to send [18:26:50]*** Cut start [18:26:50]*** Partial cut [18:26:50]*** CUTSNS_PIN = 1 [18:26:50]*** CUTSNS_PIN = 0 [18:26:50]*** Brake cut motor [18:26:51]Read from MH i2c: 01 [18:26:51]MH_I2C_Read... [18:26:51]*** Stop cut motor [18:26:51]*** Cut end [18:26:51]Read from MH i2c: 01 07 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 FF 0F A8 [18:26:51]process_action close_receipt done [18:26:51]requested_data is exist [18:26:51]produce_requested_data [18:26:51]requested_item fm.sn is exist - process it [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 11 00 00 [18:26:51]Write to MH i2c: E2 08 00 7F 15 80 11 00 00 00 00 00 00 0E [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 17 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 17 00 7F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 63 [18:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:26:51]wFMCommunicate OK [18:26:51]requested_item fd.num is exist - process it [18:26:51]SAM_PROTO_GetFieldsCounters [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 13 00 00 [18:26:51]Write to MH i2c: E2 08 00 80 15 80 13 00 00 00 00 00 00 11 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 62 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 62 00 80 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9C 86 00 00 0E 04 04 00 45 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 75 [18:26: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9C 86 00 00 0E 04 04 00 45 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 [18:26:51]wFMCommunicate OK [18:26:51]SAM_PROTO_GetFieldsCounters done [18:26:51]requested_item shift.num is exist - process it [18:26:51]requested_item shift.opened is exist - process it [18:26:51]req_shift_opened [18:26:51]FM_GetShiftState [18:26:51]SAM_PROTO_GetShiftState [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 13 01 00 [18:26:51]Write to MH i2c: E2 08 00 81 15 80 13 01 00 00 00 00 00 13 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 0E 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 0E 00 81 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2B [18:26:51]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:26:51]wFMCommunicate OK [18:26:51]SAM_PROTO_GetShiftState done [18:26:51]FM_GetShiftState done [18:26:51]req_shift_opened done [18:26:51]requested_item shift.open_date is exist - process it [18:26:51]req_shift_open_date [18:26:51]req_shift_open_date done [18:26:51]produce_requested_data done [18:26:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34460,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:26:51]process_action_free close_receipt [18:26:51]json_value_free [18:26:51]json_value_free done [18:26:51]process_json_proto returns [18:26:51]Send response to host [18:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34460,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:26:51]free response buf [18:26:51]execute_script done [18:26:51]execute_script returns [18:26:51]free content buf [18:26:51]Sock 9.Close socket [18:26:51]Sock 9.Thread stoped [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:08]accept exits with 8 [18:49:08]New connection [18:49:08]New thread 3066654052 created [18:49:08]Thread 3066510692 joined [18:49:08]Waiting for new connection... [18:49:08] Sock 8.Parse request [18:49:08]Sock 8.Check first char [18:49:08]Sock 8.First char is OK [18:49:08]request: POST /json_proto HTTP/1.0 [18:49:08]Method: POST [18:49:08]URL: /json_proto [18:49:08]Method is POST - this is cgi request [18:49:08]url: /json_proto [18:49:08]query_string will be loaded in cgi processing [18:49:08]execute_cgi json_proto POST (null) [18:49:08]execute_cgi path=json_proto method=POST [18:49:08]POST find Content-Length [18:49:08]Host: 172.17.38.134:8080 [18:49:08]Content-Length: 620 [18:49:08]Content-Type: application/json [18:49:08] [18:49:08]POST finish read [18:49:08]Found Content-Length = 620 [18:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184230", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:08]execute_script... [18:49: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)184230", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:08]POST & json_proto [18:49:08]process_json_proto [18:49:08]json parsed OK: [18:49:08]protocol is kg_v1.0 [18:49:08]action value=close_receipt [18:49:08]process_action close_receipt [18:49:08]cmd_close_receipt [18:49:08]MH_GetDate [18:49:08]Write to MH i2c: F0 00 00 82 15 86 [18:49:08]Write i2c OK [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 09 00 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: F0 09 00 82 15 00 A7 79 74 66 13 9C 7C 64 18 [18:49:08]GetLastDocTimeStamp 1718908009 [18:49:08]current date 1718909351 [18:49:08]FM_GetShiftState [18:49:08]SAM_PROTO_GetShiftState [18:49:08]wFMCommunicate request_size=4 [18:49:08]MH_SAM_APDU [18:49:08]CAPDU: 80 13 01 00 [18:49:08]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [18:49:08]Write i2c OK [18:49:08]MH_I2C_Read... [18:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:08]Read from MH i2c: E2 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: E2 0E 00 [18:49:08]MH_I2C_Read... [18:49:08]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 2D [18:49:08]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:49:08]wFMCommunicate OK [18:49:08]SAM_PROTO_GetShiftState done [18:49:08]FM_GetShiftState done [18:49:08]opened in 1718843069 [18:49:08]opened+sec_in_day 1718929469 [18:49:08]quantity*price = 13500 [18:49:08]sum+1 = 13501 [18:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 20.06.2024 18:49 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34461 ФПД: 260052078095480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184911&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34461&fm=260052078095480&tin=02508201610067®Number=0000000000092786&sum=13500 0 [18:49:09]StoreToDocumentArchive [18:49:09]shift 325 fd 34461 [18:49:09]save to /storage/0325/doc_00034461 [18:49:09]save last doc name /storage/0325/doc_00034461 to /storage/kkm_last_doc_name [18:49:09]save OK [18:49:09]Clear old archive folders... [18:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:49:09]tlvbuf is 0020E290 [18:49:09]SAM_PROTO_ClearQueue [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 09 00 00 [18:49:09]Write to MH i2c: E2 08 00 90 15 80 09 00 00 00 00 00 00 17 [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]SAM_PROTO_ClearQueue done [18:49:09]KKMCreateOFDPacket [18:49:09]OFDProtocolAddRootSTLVToBuf [18:49:09]FM_MakeSignedData [18:49:09]FM_MakeSignedData [18:49:09]SAM_PROTO_SignData [18:49:09]wFMCommunicate request_size=4 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 0D 01 02 [18:49:09]Write to MH i2c: E2 08 00 91 15 80 0D 01 02 00 00 00 00 1F [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:09]Read from MH i2c: E2 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 [18:49:09]MH_I2C_Read... [18:49:09]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [18:49:09]RAPDU: 90 00 [18:49:09]wFMCommunicate OK [18:49:09]wFMCommunicate request_size=255 [18:49:09]MH_SAM_APDU [18:49:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A7 79 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [18:49:09]Write to MH i2c: E2 02 01 92 15 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A7 79 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 68 [18:49:09]Write i2c OK [18:49:09]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]wFMCommunicate request_size=31 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 9D 86 00 00 35 04 06 00 EC 84 17 BC EC 78 [18:49:10]Write to MH i2c: E2 22 00 93 15 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 9D 86 00 00 35 04 06 00 EC 84 17 BC EC 78 00 00 19 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [18:49:10]RAPDU: 90 00 [18:49:10]wFMCommunicate OK [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 0D 03 02 [18:49:10]Write to MH i2c: E2 08 00 94 15 80 0D 03 02 00 00 00 00 24 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 0B 00 94 15 00 BD 87 3E 68 81 38 68 CA 90 00 FA [18:49:10]RAPDU: BD 87 3E 68 81 38 68 CA 90 00 [18:49:10]wFMCommunicate OK [18:49:10]SAM_PROTO_SignData done [18:49:10]FM_MakeSignedData done [18:49:10]CreateOFDProtocolMessage [18:49:10]wFMCommunicate request_size=4 [18:49:10]MH_SAM_APDU [18:49:10]CAPDU: 80 11 00 00 [18:49:10]Write to MH i2c: E2 08 00 95 15 80 11 00 00 00 00 00 00 24 [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:10]Read from MH i2c: E2 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: E2 17 00 95 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 79 [18:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:49:10]wFMCommunicate OK [18:49:10]CreateOFDProtocolMessage done [18:49:10]OFDSenderStorePacket 34461 [18:49:10]StoreOFDPacket docnum=34461 [18:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 42 A0 1C 01 EF EA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A7 79 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 86 00 00 35 04 06 00 EC 84 17 BC EC 78 BD 87 3E 68 81 38 68 CA [18:49:10]CheckFolder [18:49:10]dirname=/storage/ofd_packets [18:49:10]CheckFolder done [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00034461 [18:49:10]NVStorageSaveData ofd_packets/00034461 [18:49:10]File name is /storage/ofd_packets/00034461 [18:49:10]Write 322 bytes [18:49:10]NVStorageSaveData done [18:49:10]OFDSenderStorePacket done [18:49:10]KKMCreateOFDPacket done [18:49:10]NVStorageSaveData kkm_last_timestamp [18:49:10]File name is /storage/kkm_last_timestamp [18:49:10]Write 4 bytes [18:49:10]NVStorageSaveData done [18:49:10]ExternCall_PrintAddStr [18:49:10]wPrintStart [18:49:10]Write to MH i2c: 01 00 00 96 15 AB [18:49:10]Write i2c OK [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 [18:49:10]MH_I2C_Read... [18:49:10]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 FF 0F C0 [18:49:10]RasterBufferAndPrint [18:49:10]line Счет N : (3)184230 [18:49:10]line ИНН: 02508201610067 [18:49:10]line Контрольно-Кассовый Чек [18:49:10]line ПРОДАЖА [18:49:10]line Товар: 48745000 [18:49:10]line Сигареты Winston Purple Mix [18:49:10]line 1.000 * 135.00 [18:49:10]line = 135.00 [18:49:10]line НДС 12% НСП 1% [18:49:10]line > о реализуемом товаре [18:49:10]line ИТОГО: 135.00 [18:49:10]line НСП 1% : 1.19 [18:49:10]line НДС 12% : 14.34 [18:49:10]line Наличными: 135.00 [18:49:10]line Безнал.: 0.00 [18:49:10]line Место: АЗС № 120 "Партнер Нефть" [18:49:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:49:10]line СНО: Общий режим [18:49:10]line Чек 71 20.06.2024 18:49 [18:49:10]line Смена: 325 ФФД: 1.0 [18:49:10]line ЗНМ: 0300000172 [18:49:10]line РНМ: 0000000000092786 [18:49:10]line Версия ККМ: 001 [18:49:10]line ФМ: 0000000000875095 [18:49:10]line ФД: 34461 [18:49:10]line ФПД: 260052078095480 [18:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184911&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34461&fm=260052078095480&tin=02508201610067®Number=0000000000092786&sum=13500 [18:49:10]line 0 [18:49:10]OFD Sender: Processing packet 34461 [packets to send 8, broken 7] [18:49:10]ProducePacketName [18:49:10]name=ofd_packets/00034461 [18:49:10]OFD Sender: To server: pG, [18:49:10]CommunicateWithHost lk.salyk.kg:30040 [18:49:10]ConnectInit lk.salyk.kg [18:49:10]written 0, free lines is 4095 [18:49:10]Connected sock=9 [18:49:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 42 A0 1C 01 EF EA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A7 79 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 86 00 00 35 04 06 00 EC 84 17 BC EC 78 BD 87 3E 68 81 38 68 CA [18:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 2F 4F 47 00 4C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 86 00 00 F4 03 04 00 70 20 74 66 B6 04 01 00 00 0F BD 1E D0 DD DD 71 42 [18:49:11]CommunicateWithHost err = 0 [18:49:11]CheckOFDResponse [18:49:11]1017 (14) - 77093643461234 [18:49:11]1041 (16) - 0000000000875095 [18:49:11]1040 (4) - 34461 [18:49:11]1012 (4) - 20.06.2024 12:28 [18:49:11]1206 (1) - 0 [18:49:11]OFD Sender: Remove packet 34461 [18:49:11]ProducePacketName [18:49:11]name=ofd_packets/00034461 [18:49:11]NVStorageDeleteData [18:49:11]Write to MH i2c: 01 00 00 BE 15 D3 [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 07 00 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: 01 07 00 BE 15 00 00 00 00 00 09 0D F0 [18:49:11]RasterBufferAndPrint [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]line [18:49:11]written 0, free lines is 3343 [18:49:11]MH_Cut [18:49:11]Write to MH i2c: D1 01 00 C5 15 01 AC [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 01 00 [18:49:11]MH_I2C_Read... [18:49:11]Read from MH i2c: D1 01 00 C5 15 00 AB [18:49:11]Write to MH i2c: 01 00 00 C6 15 DB [18:49:11]Write i2c OK [18:49:11]MH_I2C_Read... [18:49:11]OFD Sender: No OFD packet to send [18:49:11]*** Cut start [18:49:11]*** Partial cut [18:49:11]*** CUTSNS_PIN = 1 [18:49:11]*** CUTSNS_PIN = 0 [18:49:12]*** Brake cut motor [18:49:12]Read from MH i2c: 01 [18:49:12]MH_I2C_Read... [18:49:12]*** Stop cut motor [18:49:12]*** Cut end [18:49:12]Read from MH i2c: 01 07 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: 01 07 00 C6 15 00 00 00 00 00 FF 0F F0 [18:49:12]process_action close_receipt done [18:49:12]requested_data is exist [18:49:12]produce_requested_data [18:49:12]requested_item fm.sn is exist - process it [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 11 00 00 [18:49:12]Write to MH i2c: E2 08 00 C7 15 80 11 00 00 00 00 00 00 56 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 17 00 C7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AB [18:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:49:12]wFMCommunicate OK [18:49:12]requested_item fd.num is exist - process it [18:49:12]SAM_PROTO_GetFieldsCounters [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 00 00 [18:49:12]Write to MH i2c: E2 08 00 C8 15 80 13 00 00 00 00 00 00 59 [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 62 00 C8 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9D 86 00 00 0E 04 04 00 45 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 C1 [18:49: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9D 86 00 00 0E 04 04 00 45 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 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetFieldsCounters done [18:49:12]requested_item shift.num is exist - process it [18:49:12]requested_item shift.opened is exist - process it [18:49:12]req_shift_opened [18:49:12]FM_GetShiftState [18:49:12]SAM_PROTO_GetShiftState [18:49:12]wFMCommunicate request_size=4 [18:49:12]MH_SAM_APDU [18:49:12]CAPDU: 80 13 01 00 [18:49:12]Write to MH i2c: E2 08 00 C9 15 80 13 01 00 00 00 00 00 5B [18:49:12]Write i2c OK [18:49:12]MH_I2C_Read... [18:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:12]Read from MH i2c: E2 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 [18:49:12]MH_I2C_Read... [18:49:12]Read from MH i2c: E2 0E 00 C9 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 73 [18:49:12]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [18:49:12]wFMCommunicate OK [18:49:12]SAM_PROTO_GetShiftState done [18:49:12]FM_GetShiftState done [18:49:12]req_shift_opened done [18:49:12]requested_item shift.open_date is exist - process it [18:49:12]req_shift_open_date [18:49:12]req_shift_open_date done [18:49:12]produce_requested_data done [18:49:12]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34461,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [18:49:12]process_action_free close_receipt [18:49:12]json_value_free [18:49:12]json_value_free done [18:49:12]process_json_proto returns [18:49:12]Send response to host [18:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34461,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [18:49:12]free response buf [18:49:12]execute_script done [18:49:12]execute_script returns [18:49:12]free content buf [18:49:12]Sock 8.Close socket [18:49:12]Sock 8.Thread stoped [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:50]accept exits with 10 [19:03:50]New connection [19:03:50]New thread 3066510692 created [19:03:50]Thread 3066654052 joined [19:03:50]Waiting for new connection... [19:03:50] Sock 10.Parse request [19:03:50]Sock 10.Check first char [19:03:50]Sock 10.First char is OK [19:03:50]request: POST /json_proto HTTP/1.0 [19:03:50]Method: POST [19:03:50]URL: /json_proto [19:03:50]Method is POST - this is cgi request [19:03:50]url: /json_proto [19:03:50]query_string will be loaded in cgi processing [19:03:50]execute_cgi json_proto POST (null) [19:03:50]execute_cgi path=json_proto method=POST [19:03:50]POST find Content-Length [19:03:50]Host: 172.17.38.134:8080 [19:03:50]Content-Length: 859 [19:03:50]Content-Type: application/json [19:03:50] [19:03:50]POST finish read [19:03:50]Found Content-Length = 859 [19:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184231", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:50]execute_script... [19: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 : (3)184231", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:50]POST & json_proto [19:03:50]process_json_proto [19:03:50]json parsed OK: [19:03:50]protocol is kg_v1.0 [19:03:50]action value=close_receipt [19:03:50]process_action close_receipt [19:03:50]cmd_close_receipt [19:03:50]MH_GetDate [19:03:50]Write to MH i2c: F0 00 00 CA 15 CE [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 09 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: F0 09 00 CA 15 00 19 7D 74 66 13 9C 7C 64 D6 [19:03:50]GetLastDocTimeStamp 1718909351 [19:03:50]current date 1718910233 [19:03:50]FM_GetShiftState [19:03:50]SAM_PROTO_GetShiftState [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 13 01 00 [19:03:50]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 75 [19:03:50]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_GetShiftState done [19:03:50]FM_GetShiftState done [19:03:50]opened in 1718843069 [19:03:50]opened+sec_in_day 1718929469 [19:03:50]quantity*price = 7000 [19:03:50]sum+1 = 7001 [19:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 72 20.06.2024 19:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34462 ФПД: 38318071260385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190353&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34462&fm=38318071260385&tin=02508201610067®Number=0000000000092786&sum=7000 0 [19:03:51]StoreToDocumentArchive [19:03:51]shift 325 fd 34462 [19:03:51]save to /storage/0325/doc_00034462 [19:03:51]save last doc name /storage/0325/doc_00034462 to /storage/kkm_last_doc_name [19:03:51]save OK [19:03:51]Clear old archive folders... [19:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:03:51]tlvbuf is 00217910 [19:03:51]SAM_PROTO_ClearQueue [19:03:51]wFMCommunicate request_size=4 [19:03:51]MH_SAM_APDU [19:03:51]CAPDU: 80 09 00 00 [19:03:51]Write to MH i2c: E2 08 00 D8 15 80 09 00 00 00 00 00 00 5F [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 D8 15 00 90 00 61 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_ClearQueue done [19:03:52]KKMCreateOFDPacket [19:03:52]OFDProtocolAddRootSTLVToBuf [19:03:52]FM_MakeSignedData [19:03:52]FM_MakeSignedData [19:03:52]SAM_PROTO_SignData [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 01 02 [19:03:52]Write to MH i2c: E2 08 00 D9 15 80 0D 01 02 00 00 00 00 67 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=255 [19:03:52]MH_SAM_APDU [19:03:52]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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 19 7D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:03:52]Write to MH i2c: E2 02 01 DA 15 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 19 7D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D7 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:52]OFD Sender: No OFD packet to send [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=52 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 86 00 00 35 04 06 00 22 D9 9F 06 A4 E1 [19:03:52]Write to MH i2c: E2 37 00 DB 15 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 86 00 00 35 04 06 00 22 D9 9F 06 A4 E1 00 00 7F [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [19:03:52]RAPDU: 90 00 [19:03:52]wFMCommunicate OK [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 0D 03 02 [19:03:52]Write to MH i2c: E2 08 00 DC 15 80 0D 03 02 00 00 00 00 6C [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0B 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 0B 00 DC 15 00 E0 B0 15 60 D1 3B FC 03 90 00 7D [19:03:52]RAPDU: E0 B0 15 60 D1 3B FC 03 90 00 [19:03:52]wFMCommunicate OK [19:03:52]SAM_PROTO_SignData done [19:03:52]FM_MakeSignedData done [19:03:52]CreateOFDProtocolMessage [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 11 00 00 [19:03:52]Write to MH i2c: E2 08 00 DD 15 80 11 00 00 00 00 00 00 6C [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 DD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C1 [19:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:03:52]wFMCommunicate OK [19:03:52]CreateOFDProtocolMessage done [19:03:52]OFDSenderStorePacket 34462 [19:03:52]StoreOFDPacket docnum=34462 [19:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 97 CD 31 01 07 A7 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 19 7D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 86 00 00 35 04 06 00 22 D9 9F 06 A4 E1 E0 B0 15 60 D1 3B FC 03 [19:03:52]CheckFolder [19:03:52]dirname=/storage/ofd_packets [19:03:52]CheckFolder done [19:03:52]ProducePacketName [19:03:52]name=ofd_packets/00034462 [19:03:52]NVStorageSaveData ofd_packets/00034462 [19:03:52]File name is /storage/ofd_packets/00034462 [19:03:52]Write 343 bytes [19:03:52]NVStorageSaveData done [19:03:52]OFDSenderStorePacket done [19:03:52]KKMCreateOFDPacket done [19:03:52]NVStorageSaveData kkm_last_timestamp [19:03:52]File name is /storage/kkm_last_timestamp [19:03:52]Write 4 bytes [19:03:52]NVStorageSaveData done [19:03:52]ExternCall_PrintAddStr [19:03:52]wPrintStart [19:03:52]Write to MH i2c: 01 00 00 DE 15 F3 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 DE 15 00 00 00 00 00 FF 0F 08 [19:03:52]RasterBufferAndPrint [19:03:52]line Счет N : (3)184231 [19:03:52]line ИНН: 02508201610067 [19:03:52]line Контрольно-Кассовый Чек [19:03:52]line ПРОДАЖА [19:03:52]line Товар: 4870202521148 [19:03:52]line Напиток MAXI чай зел лимон 0.45л [19:03:52]line 1.000 * 70.00 [19:03:52]line = 70.00 [19:03:52]line НДС 12% НСП 1% [19:03:52]line > о реализуемом товаре [19:03:52]line ИТОГО: 70.00 [19:03:52]line НСП 1% : 0.62 [19:03:52]line НДС 12% : 7.43 [19:03:52]line Наличными: 0.00 [19:03:52]line Безнал.: 70.00 [19:03:52]line Место: АЗС № 120 "Партнер Нефть" [19:03:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:03:52]line СНО: Общий режим [19:03:52]line Чек 72 20.06.2024 19:03 [19:03:52]line Смена: 325 ФФД: 1.0 [19:03:52]line ЗНМ: 0300000172 [19:03:52]line РНМ: 0000000000092786 [19:03:52]line Версия ККМ: 001 [19:03:52]line Платежная система: Бакай Банк [19:03:52]line ФМ: 0000000000875095 [19:03:52]line ФД: 34462 [19:03:52]line ФПД: 38318071260385 [19:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190353&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34462&fm=38318071260385&tin=02508201610067®Number=0000000000092786&sum=7000 [19:03:52]line 0 [19:03:52]OFD Sender: Processing packet 34462 [packets to send 8, broken 7] [19:03:52]ProducePacketName [19:03:52]name=ofd_packets/00034462 [19:03:52]OFD Sender: To server: pG, [19:03:52]CommunicateWithHost lk.salyk.kg:30040 [19:03:52]ConnectInit lk.salyk.kg [19:03:52]written 0, free lines is 4095 [19:03:53]Connected sock=9 [19:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 97 CD 31 01 07 A7 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 19 7D 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 86 00 00 35 04 06 00 22 D9 9F 06 A4 E1 E0 B0 15 60 D1 3B FC 03 [19:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 4E F5 47 00 6B 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 35 30 39 35 10 04 04 00 9E 86 00 00 F4 03 04 00 E3 23 74 66 B6 04 01 00 00 7C 9C 46 88 17 A0 F7 55 [19:03:53]CommunicateWithHost err = 0 [19:03:53]CheckOFDResponse [19:03:53]1017 (14) - 77093643461234 [19:03:53]1041 (16) - 0000000000875095 [19:03:53]1040 (4) - 34462 [19:03:53]1012 (4) - 20.06.2024 12:43 [19:03:53]1206 (1) - 0 [19:03:53]OFD Sender: Remove packet 34462 [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00034462 [19:03:53]NVStorageDeleteData [19:03:53]Write to MH i2c: 01 00 00 09 16 1F [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 09 16 00 00 00 00 00 D3 0C 05 [19:03:53]RasterBufferAndPrint [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]line [19:03:53]written 0, free lines is 3293 [19:03:53]MH_Cut [19:03:53]Write to MH i2c: D1 01 00 10 16 01 F8 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: D1 01 00 10 16 00 F7 [19:03:53]Write to MH i2c: 01 00 00 11 16 27 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]OFD Sender: No OFD packet to send [19:03:54]*** Cut start [19:03:54]*** Partial cut [19:03:54]*** CUTSNS_PIN = 1 [19:03:54]*** CUTSNS_PIN = 0 [19:03:54]*** Brake cut motor [19:03:54]Read from MH i2c: 01 [19:03:54]MH_I2C_Read... [19:03:54]*** Stop cut motor [19:03:54]*** Cut end [19:03:54]Read from MH i2c: 01 07 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 FF 0F 3C [19:03:54]process_action close_receipt done [19:03:54]requested_data is exist [19:03:54]produce_requested_data [19:03:54]requested_item fm.sn is exist - process it [19:03:54]wFMCommunicate request_size=4 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 11 00 00 [19:03:54]Write to MH i2c: E2 08 00 12 16 80 11 00 00 00 00 00 00 A2 [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:54]Read from MH i2c: E2 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 17 00 [19:03:54]MH_I2C_Read... [19:03:54]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 35 30 39 35 90 00 F7 [19:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:03:54]wFMCommunicate OK [19:03:54]requested_item fd.num is exist - process it [19:03:54]SAM_PROTO_GetFieldsCounters [19:03:54]wFMCommunicate request_size=4 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 13 00 00 [19:03:54]Write to MH i2c: E2 08 00 13 16 80 13 00 00 00 00 00 00 A5 [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:54]Read from MH i2c: E2 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 62 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 62 00 13 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 86 00 00 0E 04 04 00 45 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 11 [19: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 86 00 00 0E 04 04 00 45 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 [19:03:54]wFMCommunicate OK [19:03:54]SAM_PROTO_GetFieldsCounters done [19:03:54]requested_item shift.num is exist - process it [19:03:54]requested_item shift.opened is exist - process it [19:03:54]req_shift_opened [19:03:54]FM_GetShiftState [19:03:54]SAM_PROTO_GetShiftState [19:03:54]wFMCommunicate request_size=4 [19:03:54]MH_SAM_APDU [19:03:54]CAPDU: 80 13 01 00 [19:03:54]Write to MH i2c: E2 08 00 14 16 80 13 01 00 00 00 00 00 A7 [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:54]Read from MH i2c: E2 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 0E 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: E2 0E 00 14 16 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 BF [19:03:54]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:03:54]wFMCommunicate OK [19:03:54]SAM_PROTO_GetShiftState done [19:03:54]FM_GetShiftState done [19:03:54]req_shift_opened done [19:03:54]requested_item shift.open_date is exist - process it [19:03:54]req_shift_open_date [19:03:54]req_shift_open_date done [19:03:54]produce_requested_data done [19:03:54]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34462,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [19:03:54]process_action_free close_receipt [19:03:54]json_value_free [19:03:54]json_value_free done [19:03:54]process_json_proto returns [19:03:54]Send response to host [19:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34462,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [19:03:54]free response buf [19:03:54]execute_script done [19:03:54]execute_script returns [19:03:54]free content buf [19:03:54]Sock 10.Close socket [19:03:54]Sock 10.Thread stoped [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:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:16]accept exits with 8 [19:11:16]New connection [19:11:16]New thread 3066654052 created [19:11:16]Thread 3066510692 joined [19:11:16]Waiting for new connection... [19:11:16] Sock 8.Parse request [19:11:16]Sock 8.Check first char [19:11:16]Sock 8.First char is OK [19:11:16]request: POST /json_proto HTTP/1.0 [19:11:16]Method: POST [19:11:16]URL: /json_proto [19:11:16]Method is POST - this is cgi request [19:11:16]url: /json_proto [19:11:16]query_string will be loaded in cgi processing [19:11:16]execute_cgi json_proto POST (null) [19:11:16]execute_cgi path=json_proto method=POST [19:11:16]POST find Content-Length [19:11:16]Host: 172.17.38.134:8080 [19:11:16]Content-Length: 799 [19:11:16]Content-Type: application/json [19:11:16] [19:11:16]POST finish read [19:11:16]Found Content-Length = 799 [19:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184232", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:16]execute_script... [19:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184232", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:16]POST & json_proto [19:11:16]process_json_proto [19:11:16]json parsed OK: [19:11:16]protocol is kg_v1.0 [19:11:16]action value=close_receipt [19:11:16]process_action close_receipt [19:11:16]cmd_close_receipt [19:11:16]MH_GetDate [19:11:16]Write to MH i2c: F0 00 00 15 16 1A [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: F0 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: F0 09 00 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: F0 09 00 15 16 00 D7 7E 74 66 13 9C 7C 64 E1 [19:11:16]GetLastDocTimeStamp 1718910233 [19:11:16]current date 1718910679 [19:11:16]FM_GetShiftState [19:11:16]SAM_PROTO_GetShiftState [19:11:16]wFMCommunicate request_size=4 [19:11:16]MH_SAM_APDU [19:11:16]CAPDU: 80 13 01 00 [19:11:16]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:16]Read from MH i2c: E2 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: E2 0E 00 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C1 [19:11:16]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:11:16]wFMCommunicate OK [19:11:16]SAM_PROTO_GetShiftState done [19:11:16]FM_GetShiftState done [19:11:16]opened in 1718843069 [19:11:16]opened+sec_in_day 1718929469 [19:11:16]quantity*price = 15000 [19:11:16]sum+1 = 15001 [19:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 73 20.06.2024 19:11 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34463 ФПД: 233144946730251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191120&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34463&fm=233144946730251&tin=02508201610067®Number=0000000000092786&sum=15000 0 [19:11:18]StoreToDocumentArchive [19:11:18]shift 325 fd 34463 [19:11:18]save to /storage/0325/doc_00034463 [19:11:18]save last doc name /storage/0325/doc_00034463 to /storage/kkm_last_doc_name [19:11:18]save OK [19:11:18]Clear old archive folders... [19:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:11:18]tlvbuf is 002417D0 [19:11:18]SAM_PROTO_ClearQueue [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 09 00 00 [19:11:18]Write to MH i2c: E2 08 00 23 16 80 09 00 00 00 00 00 00 AB [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [19:11:18]RAPDU: 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_ClearQueue done [19:11:18]KKMCreateOFDPacket [19:11:18]OFDProtocolAddRootSTLVToBuf [19:11:18]FM_MakeSignedData [19:11:18]FM_MakeSignedData [19:11:18]SAM_PROTO_SignData [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 0D 01 02 [19:11:18]Write to MH i2c: E2 08 00 24 16 80 0D 01 02 00 00 00 00 B3 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [19:11:18]RAPDU: 90 00 [19:11:18]wFMCommunicate OK [19:11:18]wFMCommunicate request_size=255 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D8 7E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [19:11:18]Write to MH i2c: E2 02 01 25 16 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D8 7E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 91 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [19:11:18]RAPDU: 90 00 [19:11:18]wFMCommunicate OK [19:11:18]wFMCommunicate request_size=33 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 86 00 00 35 04 06 00 D4 0B 49 BB 25 0B [19:11:18]Write to MH i2c: E2 24 00 26 16 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 86 00 00 35 04 06 00 D4 0B 49 BB 25 0B 00 00 7F [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [19:11:18]RAPDU: 90 00 [19:11:18]wFMCommunicate OK [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 0D 03 02 [19:11:18]Write to MH i2c: E2 08 00 27 16 80 0D 03 02 00 00 00 00 B8 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0B 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0B 00 27 16 00 4A B0 ED E0 F4 07 C6 A6 90 00 E7 [19:11:18]RAPDU: 4A B0 ED E0 F4 07 C6 A6 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_SignData done [19:11:18]FM_MakeSignedData done [19:11:18]CreateOFDProtocolMessage [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 11 00 00 [19:11:18]Write to MH i2c: E2 08 00 28 16 80 11 00 00 00 00 00 00 B8 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 17 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 17 00 28 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0D [19:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:11:18]wFMCommunicate OK [19:11:18]CreateOFDProtocolMessage done [19:11:18]OFDSenderStorePacket 34463 [19:11:18]StoreOFDPacket docnum=34463 [19:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 06 15 1E 01 CF 13 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D8 7E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 86 00 00 35 04 06 00 D4 0B 49 BB 25 0B 4A B0 ED E0 F4 07 C6 A6 [19:11:18]CheckFolder [19:11:18]dirname=/storage/ofd_packets [19:11:18]CheckFolder done [19:11:18]ProducePacketName [19:11:18]name=ofd_packets/00034463 [19:11:18]NVStorageSaveData ofd_packets/00034463 [19:11:18]File name is /storage/ofd_packets/00034463 [19:11:18]Write 324 bytes [19:11:18]NVStorageSaveData done [19:11:18]OFDSenderStorePacket done [19:11:18]KKMCreateOFDPacket done [19:11:18]NVStorageSaveData kkm_last_timestamp [19:11:18]File name is /storage/kkm_last_timestamp [19:11:18]Write 4 bytes [19:11:18]NVStorageSaveData done [19:11:18]ExternCall_PrintAddStr [19:11:18]wPrintStart [19:11:18]Write to MH i2c: 01 00 00 29 16 3F [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: 01 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: 01 07 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 FF 0F 54 [19:11:18]RasterBufferAndPrint [19:11:18]line Счет N : (3)184232 [19:11:18]line ИНН: 02508201610067 [19:11:18]line Контрольно-Кассовый Чек [19:11:18]line ПРОДАЖА [19:11:18]line Товар: 46230614 [19:11:18]line Сигареты Richmond Red Edition [19:11:18]line 1.000 * 150.00 [19:11:18]line = 150.00 [19:11:18]line НДС 12% НСП 1% [19:11:18]line > о реализуемом товаре [19:11:18]line ИТОГО: 150.00 [19:11:18]line НСП 1% : 1.33 [19:11:18]line НДС 12% : 15.93 [19:11:18]line Наличными: 0.00 [19:11:18]line Безнал.: 150.00 [19:11:18]line Место: АЗС № 120 "Партнер Нефть" [19:11:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:11:18]line СНО: Общий режим [19:11:18]line Чек 73 20.06.2024 19:11 [19:11:18]line Смена: 325 ФФД: 1.0 [19:11:18]line ЗНМ: 0300000172 [19:11:18]line РНМ: 0000000000092786 [19:11:18]line Версия ККМ: 001 [19:11:18]line Платежная система: Бакай Банк [19:11:18]line ФМ: 0000000000875095 [19:11:18]line ФД: 34463 [19:11:18]line ФПД: 233144946730251 [19:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191120&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34463&fm=233144946730251&tin=02508201610067®Number=0000000000092786&sum=15000 [19:11:18]line 0 [19:11:18]OFD Sender: Processing packet 34463 [packets to send 8, broken 7] [19:11:18]ProducePacketName [19:11:18]name=ofd_packets/00034463 [19:11:18]OFD Sender: To server: pG, [19:11:18]CommunicateWithHost lk.salyk.kg:30040 [19:11:18]ConnectInit lk.salyk.kg [19:11:18]written 0, free lines is 4095 [19:11:19]Connected sock=10 [19:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 06 15 1E 01 CF 13 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 D8 7E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 86 00 00 35 04 06 00 D4 0B 49 BB 25 0B 4A B0 ED E0 F4 07 C6 A6 [19:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C6 53 47 00 9A 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 35 30 39 35 10 04 04 00 9F 86 00 00 F4 03 04 00 A1 25 74 66 B6 04 01 00 00 1D 4D 04 BB 6B 57 A3 91 [19:11:19]CommunicateWithHost err = 0 [19:11:19]CheckOFDResponse [19:11:19]1017 (14) - 77093643461234 [19:11:19]1041 (16) - 0000000000875095 [19:11:19]1040 (4) - 34463 [19:11:19]1012 (4) - 20.06.2024 12:50 [19:11:19]1206 (1) - 0 [19:11:19]OFD Sender: Remove packet 34463 [19:11:19]ProducePacketName [19:11:19]name=ofd_packets/00034463 [19:11:19]NVStorageDeleteData [19:11:19]Write to MH i2c: 01 00 00 54 16 6A [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: 01 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: 01 07 00 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 CA 0C 47 [19:11:19]RasterBufferAndPrint [19:11:19]line [19:11:19]line [19:11:19]line [19:11:19]line [19:11:19]line [19:11:19]written 0, free lines is 3280 [19:11:19]MH_Cut [19:11:19]Write to MH i2c: D1 01 00 5B 16 01 43 [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: D1 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: D1 01 00 [19:11:19]MH_I2C_Read... [19:11:19]Read from MH i2c: D1 01 00 5B 16 00 42 [19:11:19]Write to MH i2c: 01 00 00 5C 16 72 [19:11:19]Write i2c OK [19:11:19]MH_I2C_Read... [19:11:19]OFD Sender: No OFD packet to send [19:11:20]*** Cut start [19:11:20]*** Partial cut [19:11:20]*** CUTSNS_PIN = 1 [19:11:20]*** CUTSNS_PIN = 0 [19:11:20]*** Brake cut motor [19:11:20]Read from MH i2c: 01 [19:11:20]MH_I2C_Read... [19:11:20]*** Stop cut motor [19:11:20]*** Cut end [19:11:20]Read from MH i2c: 01 07 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 FF 0F 87 [19:11:20]process_action close_receipt done [19:11:20]requested_data is exist [19:11:20]produce_requested_data [19:11:20]requested_item fm.sn is exist - process it [19:11:20]wFMCommunicate request_size=4 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 11 00 00 [19:11:20]Write to MH i2c: E2 08 00 5D 16 80 11 00 00 00 00 00 00 ED [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 17 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 17 00 5D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 42 [19:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:11:20]wFMCommunicate OK [19:11:20]requested_item fd.num is exist - process it [19:11:20]SAM_PROTO_GetFieldsCounters [19:11:20]wFMCommunicate request_size=4 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 13 00 00 [19:11:20]Write to MH i2c: E2 08 00 5E 16 80 13 00 00 00 00 00 00 F0 [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:20]Read from MH i2c: E2 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 62 00 [19:11:20]MH_I2C_Read... [19:11:20]Read from MH i2c: E2 62 00 5E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9F 86 00 00 0E 04 04 00 45 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 60 [19:11: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9F 86 00 00 0E 04 04 00 45 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 [19:11:20]wFMCommunicate OK [19:11:20]SAM_PROTO_GetFieldsCounters done [19:11:20]requested_item shift.num is exist - process it [19:11:20]requested_item shift.opened is exist - process it [19:11:20]req_shift_opened [19:11:20]FM_GetShiftState [19:11:20]SAM_PROTO_GetShiftState [19:11:20]wFMCommunicate request_size=4 [19:11:20]MH_SAM_APDU [19:11:20]CAPDU: 80 13 01 00 [19:11:20]Write to MH i2c: E2 08 00 5F 16 80 13 01 00 00 00 00 00 F2 [19:11:20]Write i2c OK [19:11:20]MH_I2C_Read... [19:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:21]Read from MH i2c: E2 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: E2 0E 00 [19:11:21]MH_I2C_Read... [19:11:21]Read from MH i2c: E2 0E 00 5F 16 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 0A [19:11:21]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:11:21]wFMCommunicate OK [19:11:21]SAM_PROTO_GetShiftState done [19:11:21]FM_GetShiftState done [19:11:21]req_shift_opened done [19:11:21]requested_item shift.open_date is exist - process it [19:11:21]req_shift_open_date [19:11:21]req_shift_open_date done [19:11:21]produce_requested_data done [19:11:21]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34463,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [19:11:21]process_action_free close_receipt [19:11:21]json_value_free [19:11:21]json_value_free done [19:11:21]process_json_proto returns [19:11:21]Send response to host [19:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34463,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [19:11:21]free response buf [19:11:21]execute_script done [19:11:21]execute_script returns [19:11:21]free content buf [19:11:21]Sock 8.Close socket [19:11:21]Sock 8.Thread stoped [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:17:58]ConnectInit Can't connect to host [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:15]accept exits with 6 [19:18:15]New connection [19:18:15]New thread 3066625380 created [19:18:15]Waiting for new connection... [19:18:15] Sock 6.Parse request [19:18:15]Sock 6.Check first char [19:18:15]Sock 6.First char is OK [19:18:15]request: POST /json_proto HTTP/1.0 [19:18:15]Method: POST [19:18:15]URL: /json_proto [19:18:15]Method is POST - this is cgi request [19:18:15]url: /json_proto [19:18:15]query_string will be loaded in cgi processing [19:18:15]execute_cgi json_proto POST (null) [19:18:15]execute_cgi path=json_proto method=POST [19:18:15]POST find Content-Length [19:18:15]Host: 172.17.38.134:8080 [19:18:15]Content-Length: 621 [19:18:15]Content-Type: application/json [19:18:15] [19:18:15]POST finish read [19:18:15]Found Content-Length = 621 [19:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184233", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [19:18:15]execute_script... [19:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184233", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.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" ] } } [19:18:15]POST & json_proto [19:18:15]process_json_proto [19:18:15]json parsed OK: [19:18:15]protocol is kg_v1.0 [19:18:15]action value=close_receipt [19:18:15]process_action close_receipt [19:18:15]cmd_close_receipt [19:18:15]MH_GetDate [19:18:15]Write to MH i2c: F0 00 00 10 00 FF [19:18:15]Write i2c OK [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: F0 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: F0 09 00 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: F0 09 00 10 00 00 77 80 74 66 13 9C 7C 64 68 [19:18:15]GetLastDocTimeStamp 1718910680 [19:18:15]current date 1718911095 [19:18:15]FM_GetShiftState [19:18:15]SAM_PROTO_GetShiftState [19:18:15]wFMCommunicate request_size=4 [19:18:15]MH_SAM_APDU [19:18:15]CAPDU: 80 13 01 00 [19:18:15]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [19:18:15]Write i2c OK [19:18:15]MH_I2C_Read... [19:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:15]Read from MH i2c: E2 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 0E 00 [19:18:15]MH_I2C_Read... [19:18:15]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 A6 [19:18:15]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:18:15]wFMCommunicate OK [19:18:15]SAM_PROTO_GetShiftState done [19:18:15]FM_GetShiftState done [19:18:15]opened in 1718843069 [19:18:15]opened+sec_in_day 1718929469 [19:18:15]quantity*price = 14000 [19:18:15]sum+1 = 14001 [19:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 20.06.2024 19:18 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34464 ФПД: 43976757720499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191816&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34464&fm=43976757720499&tin=02508201610067®Number=0000000000092786&sum=14000 0 [19:18:16]StoreToDocumentArchive [19:18:16]shift 325 fd 34464 [19:18:16]save to /storage/0325/doc_00034464 [19:18:16]save last doc name /storage/0325/doc_00034464 to /storage/kkm_last_doc_name [19:18:16]save OK [19:18:16]Clear old archive folders... [19:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:18:16]tlvbuf is 02068B40 [19:18:16]SAM_PROTO_ClearQueue [19:18:16]wFMCommunicate request_size=4 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 09 00 00 [19:18:16]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [19:18:16]RAPDU: 90 00 [19:18:16]wFMCommunicate OK [19:18:16]SAM_PROTO_ClearQueue done [19:18:16]KKMCreateOFDPacket [19:18:16]OFDProtocolAddRootSTLVToBuf [19:18:16]FM_MakeSignedData [19:18:16]FM_MakeSignedData [19:18:16]SAM_PROTO_SignData [19:18:16]wFMCommunicate request_size=4 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 0D 01 02 [19:18:16]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [19:18:16]RAPDU: 90 00 [19:18:16]wFMCommunicate OK [19:18:16]wFMCommunicate request_size=255 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4A 00 00 00 F4 03 04 00 78 80 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [19:18:16]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4A 00 00 00 F4 03 04 00 78 80 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 F6 [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]OFD Sender: No OFD packet to send [19:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [19:18:16]RAPDU: 90 00 [19:18:16]wFMCommunicate OK [19:18:16]wFMCommunicate request_size=32 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 86 00 00 35 04 06 00 27 FF 23 05 B5 B3 [19:18:16]Write to MH i2c: E2 23 00 21 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 86 00 00 35 04 06 00 27 FF 23 05 B5 B3 00 00 D6 [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [19:18:16]RAPDU: 90 00 [19:18:16]wFMCommunicate OK [19:18:16]wFMCommunicate request_size=4 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 0D 03 02 [19:18:16]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 0B 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 0B 00 22 00 00 FE 1B 51 0B D1 B5 E0 99 90 00 12 [19:18:16]RAPDU: FE 1B 51 0B D1 B5 E0 99 90 00 [19:18:16]wFMCommunicate OK [19:18:16]SAM_PROTO_SignData done [19:18:16]FM_MakeSignedData done [19:18:16]CreateOFDProtocolMessage [19:18:16]wFMCommunicate request_size=4 [19:18:16]MH_SAM_APDU [19:18:16]CAPDU: 80 11 00 00 [19:18:16]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:16]Read from MH i2c: E2 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 17 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F2 [19:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:18:16]wFMCommunicate OK [19:18:16]CreateOFDProtocolMessage done [19:18:16]OFDSenderStorePacket 34464 [19:18:16]StoreOFDPacket docnum=34464 [19:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 3E 35 1D 01 E7 D9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4A 00 00 00 F4 03 04 00 78 80 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 86 00 00 35 04 06 00 27 FF 23 05 B5 B3 FE 1B 51 0B D1 B5 E0 99 [19:18:16]CheckFolder [19:18:16]dirname=/storage/ofd_packets [19:18:16]CheckFolder done [19:18:16]ProducePacketName [19:18:16]name=ofd_packets/00034464 [19:18:16]NVStorageSaveData ofd_packets/00034464 [19:18:16]File name is /storage/ofd_packets/00034464 [19:18:16]Write 323 bytes [19:18:16]NVStorageSaveData done [19:18:16]OFDSenderStorePacket done [19:18:16]KKMCreateOFDPacket done [19:18:16]NVStorageSaveData kkm_last_timestamp [19:18:16]File name is /storage/kkm_last_timestamp [19:18:16]Write 4 bytes [19:18:16]NVStorageSaveData done [19:18:16]ExternCall_PrintAddStr [19:18:16]wPrintStart [19:18:16]Write to MH i2c: 01 00 00 24 00 24 [19:18:16]Write i2c OK [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: 01 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: 01 07 00 [19:18:16]MH_I2C_Read... [19:18:16]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [19:18:16]RasterBufferAndPrint [19:18:16]line Счет N : (3)184233 [19:18:16]line ИНН: 02508201610067 [19:18:16]line Контрольно-Кассовый Чек [19:18:16]line ПРОДАЖА [19:18:16]line Товар: 48743570 [19:18:16]line Сигареты Winston XStyle Blue [19:18:16]line 1.000 * 140.00 [19:18:16]line = 140.00 [19:18:16]line НДС 12% НСП 1% [19:18:16]line > о реализуемом товаре [19:18:16]line ИТОГО: 140.00 [19:18:16]line НСП 1% : 1.24 [19:18:16]line НДС 12% : 14.87 [19:18:16]line Наличными: 140.00 [19:18:16]line Безнал.: 0.00 [19:18:16]line Место: АЗС № 120 "Партнер Нефть" [19:18:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:18:16]line СНО: Общий режим [19:18:16]line Чек 74 20.06.2024 19:18 [19:18:16]line Смена: 325 ФФД: 1.0 [19:18:16]line ЗНМ: 0300000172 [19:18:16]line РНМ: 0000000000092786 [19:18:16]line Версия ККМ: 001 [19:18:16]line ФМ: 0000000000875095 [19:18:16]line ФД: 34464 [19:18:16]line ФПД: 43976757720499 [19:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191816&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34464&fm=43976757720499&tin=02508201610067®Number=0000000000092786&sum=14000 [19:18:16]line 0 [19:18:16]written 0, free lines is 4095 [19:18:16]OFD Sender: Processing packet 34464 [packets to send 8, broken 7] [19:18:16]ProducePacketName [19:18:16]name=ofd_packets/00034464 [19:18:16]OFD Sender: To server: pG, [19:18:16]CommunicateWithHost lk.salyk.kg:30040 [19:18:16]ConnectInit lk.salyk.kg [19:18:16]Connected sock=9 [19:18:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 3E 35 1D 01 E7 D9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4A 00 00 00 F4 03 04 00 78 80 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 86 00 00 35 04 06 00 27 FF 23 05 B5 B3 FE 1B 51 0B D1 B5 E0 99 [19:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 03 69 47 00 F7 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 35 30 39 35 10 04 04 00 A0 86 00 00 F4 03 04 00 40 27 74 66 B6 04 01 00 00 6C 65 19 7D 60 AB 52 76 [19:18:17]CommunicateWithHost err = 0 [19:18:17]CheckOFDResponse [19:18:17]1017 (14) - 77093643461234 [19:18:17]1041 (16) - 0000000000875095 [19:18:17]1040 (4) - 34464 [19:18:17]1012 (4) - 20.06.2024 12:57 [19:18:17]1206 (1) - 0 [19:18:17]OFD Sender: Remove packet 34464 [19:18:17]ProducePacketName [19:18:17]name=ofd_packets/00034464 [19:18:17]NVStorageDeleteData [19:18:17]Write to MH i2c: 01 00 00 4C 00 4C [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: 01 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: 01 07 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 02 0D 62 [19:18:17]RasterBufferAndPrint [19:18:17]line [19:18:17]line [19:18:17]line [19:18:17]line [19:18:17]line [19:18:17]written 0, free lines is 3337 [19:18:17]MH_Cut [19:18:17]Write to MH i2c: D1 01 00 53 00 01 25 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: D1 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: D1 01 00 [19:18:17]MH_I2C_Read... [19:18:17]Read from MH i2c: D1 01 00 53 00 00 24 [19:18:17]Write to MH i2c: 01 00 00 54 00 54 [19:18:17]Write i2c OK [19:18:17]MH_I2C_Read... [19:18:17]OFD Sender: No OFD packet to send [19:18:17]*** Cut start [19:18:17]*** Partial cut [19:18:17]*** CUTSNS_PIN = 1 [19:18:17]*** CUTSNS_PIN = 0 [19:18:18]*** Brake cut motor [19:18:18]Read from MH i2c: 01 [19:18:18]MH_I2C_Read... [19:18:18]*** Stop cut motor [19:18:18]*** Cut end [19:18:18]Read from MH i2c: 01 07 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: 01 07 00 54 00 00 00 00 00 00 FF 0F 69 [19:18:18]process_action close_receipt done [19:18:18]requested_data is exist [19:18:18]produce_requested_data [19:18:18]requested_item fm.sn is exist - process it [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 11 00 00 [19:18:18]Write to MH i2c: E2 08 00 55 00 80 11 00 00 00 00 00 00 CF [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 17 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 17 00 55 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 24 [19:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:18:18]wFMCommunicate OK [19:18:18]requested_item fd.num is exist - process it [19:18:18]SAM_PROTO_GetFieldsCounters [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 13 00 00 [19:18:18]Write to MH i2c: E2 08 00 56 00 80 13 00 00 00 00 00 00 D2 [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 62 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 62 00 56 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A0 86 00 00 0E 04 04 00 45 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 46 [19:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A0 86 00 00 0E 04 04 00 45 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 [19:18:18]wFMCommunicate OK [19:18:18]SAM_PROTO_GetFieldsCounters done [19:18:18]requested_item shift.num is exist - process it [19:18:18]requested_item shift.opened is exist - process it [19:18:18]req_shift_opened [19:18:18]FM_GetShiftState [19:18:18]SAM_PROTO_GetShiftState [19:18:18]wFMCommunicate request_size=4 [19:18:18]MH_SAM_APDU [19:18:18]CAPDU: 80 13 01 00 [19:18:18]Write to MH i2c: E2 08 00 57 00 80 13 01 00 00 00 00 00 D4 [19:18:18]Write i2c OK [19:18:18]MH_I2C_Read... [19:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:18]Read from MH i2c: E2 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 0E 00 [19:18:18]MH_I2C_Read... [19:18:18]Read from MH i2c: E2 0E 00 57 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EC [19:18:18]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:18:18]wFMCommunicate OK [19:18:18]SAM_PROTO_GetShiftState done [19:18:18]FM_GetShiftState done [19:18:18]req_shift_opened done [19:18:18]requested_item shift.open_date is exist - process it [19:18:18]req_shift_open_date [19:18:18]req_shift_open_date done [19:18:18]produce_requested_data done [19:18:18]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34464,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [19:18:18]process_action_free close_receipt [19:18:18]json_value_free [19:18:18]json_value_free done [19:18:18]process_json_proto returns [19:18:18]Send response to host [19:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34464,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [19:18:18]free response buf [19:18:18]execute_script done [19:18:18]execute_script returns [19:18:18]free content buf [19:18:18]Sock 6.Close socket [19:18:18]Sock 6.Thread stoped [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43: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:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:48]accept exits with 10 [19:59:48]New connection [19:59:48]New thread 3066482020 created [19:59:48]Thread 3066625380 joined [19:59:48]Waiting for new connection... [19:59:48] Sock 10.Parse request [19:59:48]Sock 10.Check first char [19:59:48]Sock 10.First char is OK [19:59:48]request: POST /json_proto HTTP/1.0 [19:59:48]Method: POST [19:59:48]URL: /json_proto [19:59:48]Method is POST - this is cgi request [19:59:48]url: /json_proto [19:59:48]query_string will be loaded in cgi processing [19:59:48]execute_cgi json_proto POST (null) [19:59:48]execute_cgi path=json_proto method=POST [19:59:48]POST find Content-Length [19:59:48]Host: 172.17.38.134:8080 [19:59:48]Content-Length: 1433 [19:59:48]Content-Type: application/json [19:59:48] [19:59:48]POST finish read [19:59:48]Found Content-Length = 1433 [19:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184234", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:48]execute_script... [19: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 : (3)184234", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:48]POST & json_proto [19:59:48]process_json_proto [19:59:48]json parsed OK: [19:59:48]protocol is kg_v1.0 [19:59:48]action value=close_receipt [19:59:48]process_action close_receipt [19:59:48]cmd_close_receipt [19:59:48]MH_GetDate [19:59:48]Write to MH i2c: F0 00 00 58 00 47 [19:59:48]Write i2c OK [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 09 00 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: F0 09 00 58 00 00 35 8A 74 66 13 9C 7C 64 78 [19:59:48]GetLastDocTimeStamp 1718911096 [19:59:48]current date 1718913589 [19:59:48]FM_GetShiftState [19:59:48]SAM_PROTO_GetShiftState [19:59:48]wFMCommunicate request_size=4 [19:59:48]MH_SAM_APDU [19:59:48]CAPDU: 80 13 01 00 [19:59:48]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [19:59:48]Write i2c OK [19:59:48]MH_I2C_Read... [19:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:48]Read from MH i2c: E2 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 [19:59:48]MH_I2C_Read... [19:59:48]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EE [19:59:48]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:59:48]wFMCommunicate OK [19:59:48]SAM_PROTO_GetShiftState done [19:59:48]FM_GetShiftState done [19:59:48]opened in 1718843069 [19:59:48]opened+sec_in_day 1718929469 [19:59:48]quantity*price = 12500 [19:59:48]sum+1 = 12501 [19:59:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015232868 Вафли Яшкино в шоколадной глазури 200г 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017453130 Тараллини NF 180г клас 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.82 НДС 12% : 33.77 Наличными: 0.00 Безнал.: 318.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 20.06.2024 19:59 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34465 ФПД: 256093800729202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195949&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34465&fm=256093800729202&tin=02508201610067®Number=0000000000092786&sum=31800 0 [19:59:49]StoreToDocumentArchive [19:59:49]shift 325 fd 34465 [19:59:49]save to /storage/0325/doc_00034465 [19:59:49]save last doc name /storage/0325/doc_00034465 to /storage/kkm_last_doc_name [19:59:49]save OK [19:59:49]Clear old archive folders... [19:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=530 [19:59:49]tlvbuf is 02061A20 [19:59:49]SAM_PROTO_ClearQueue [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 09 00 00 [19:59:49]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_ClearQueue done [19:59:49]KKMCreateOFDPacket [19:59:49]OFDProtocolAddRootSTLVToBuf [19:59:49]FM_MakeSignedData [19:59:49]FM_MakeSignedData [19:59:49]SAM_PROTO_SignData [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 01 02 [19:59:49]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [19:59:49]Write i2c OK [19:59:49]OFD Sender: No OFD packet to send [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [19:59:49]RAPDU: 90 00 [19:59:49]wFMCommunicate OK [19:59:49]wFMCommunicate request_size=255 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 [19:59:49]Write to MH i2c: E2 02 01 68 00 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 00 00 93 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=255 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 35 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [19:59:50]Write to MH i2c: E2 02 01 69 00 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 35 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 74 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=39 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 86 00 00 35 04 06 00 E8 EA 7C 05 8A 72 [19:59:50]Write to MH i2c: E2 2A 00 6A 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 86 00 00 35 04 06 00 E8 EA 7C 05 8A 72 00 00 17 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 03 02 [19:59:50]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 6B 00 00 1C 31 D0 B1 DE B5 27 98 90 00 07 [19:59:50]RAPDU: 1C 31 D0 B1 DE B5 27 98 90 00 [19:59:50]wFMCommunicate OK [19:59:50]SAM_PROTO_SignData done [19:59:50]FM_MakeSignedData done [19:59:50]CreateOFDProtocolMessage [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 11 00 00 [19:59:50]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3B [19:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:59:50]wFMCommunicate OK [19:59:50]CreateOFDProtocolMessage done [19:59:50]OFDSenderStorePacket 34465 [19:59:50]StoreOFDPacket docnum=34465 [19:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 02 00 00 40 8D 1E 02 2F 09 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 35 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 86 00 00 35 04 06 00 E8 EA 7C 05 8A 72 1C 31 D0 B1 DE B5 27 98 [19:59:50]CheckFolder [19:59:50]dirname=/storage/ofd_packets [19:59:50]CheckFolder done [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00034465 [19:59:50]NVStorageSaveData ofd_packets/00034465 [19:59:50]File name is /storage/ofd_packets/00034465 [19:59:50]Write 580 bytes [19:59:50]NVStorageSaveData done [19:59:50]OFDSenderStorePacket done [19:59:50]KKMCreateOFDPacket done [19:59:50]NVStorageSaveData kkm_last_timestamp [19:59:50]File name is /storage/kkm_last_timestamp [19:59:50]Write 4 bytes [19:59:50]NVStorageSaveData done [19:59:50]ExternCall_PrintAddStr [19:59:50]wPrintStart [19:59:50]Write to MH i2c: 01 00 00 6D 00 6D [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [19:59:50]RasterBufferAndPrint [19:59:50]line Счет N : (3)184234 [19:59:50]line ИНН: 02508201610067 [19:59:50]line Контрольно-Кассовый Чек [19:59:50]line ПРОДАЖА [19:59:50]line Товар: 2000036220012 [19:59:50]line Кофе Капучино XL(GABB TRADE) [19:59:50]line 1.000 * 125.00 [19:59:50]line = 125.00 [19:59:50]line НДС 12% НСП 1% [19:59:50]line > о реализуемом товаре [19:59:50]line Товар: 4607015232868 [19:59:50]line Вафли Яшкино в шоколадной глазури 200г [19:59:50]line 1.000 * 113.00 [19:59:50]line = 113.00 [19:59:50]line НДС 12% НСП 1% [19:59:50]line > о реализуемом товаре [19:59:50]line Товар: 4620017453130 [19:59:50]line Тараллини NF 180г клас [19:59:50]line 1.000 * 80.00 [19:59:50]line = 80.00 [19:59:50]line НДС 12% НСП 1% [19:59:50]line > о реализуемом товаре [19:59:50]line ИТОГО: 318.00 [19:59:50]line НСП 1% : 2.82 [19:59:50]line НДС 12% : 33.77 [19:59:50]line Наличными: 0.00 [19:59:50]line Безнал.: 318.00 [19:59:50]line Место: АЗС № 120 "Партнер Нефть" [19:59:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:59:50]line СНО: Общий режим [19:59:50]line Чек 75 20.06.2024 19:59 [19:59:50]line Смена: 325 ФФД: 1.0 [19:59:50]line ЗНМ: 0300000172 [19:59:50]line РНМ: 0000000000092786 [19:59:50]line Версия ККМ: 001 [19:59:50]line Платежная система: O! деньги [19:59:50]line ФМ: 0000000000875095 [19:59:50]line ФД: 34465 [19:59:50]line ФПД: 256093800729202 [19:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195949&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34465&fm=256093800729202&tin=02508201610067®Number=0000000000092786&sum=31800 [19:59:50]line 0 [19:59:50]OFD Sender: Processing packet 34465 [packets to send 8, broken 7] [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00034465 [19:59:50]OFD Sender: To server: pG, [19:59:50]CommunicateWithHost lk.salyk.kg:30040 [19:59:50]ConnectInit lk.salyk.kg [19:59:50]written 0, free lines is 4095 [19:59:51]Connected sock=9 [19:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 02 00 00 40 8D 1E 02 2F 09 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 35 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 86 00 00 35 04 06 00 E8 EA 7C 05 8A 72 1C 31 D0 B1 DE B5 27 98 [19:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7F 23 47 00 09 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 86 00 00 F4 03 04 00 FE 30 74 66 B6 04 01 00 00 F1 95 28 D1 69 68 11 B7 [19:59:51]CommunicateWithHost err = 0 [19:59:51]CheckOFDResponse [19:59:51]1017 (14) - 77093643461234 [19:59:51]1041 (16) - 0000000000875095 [19:59:51]1040 (4) - 34465 [19:59:51]1012 (4) - 20.06.2024 13:39 [19:59:51]1206 (1) - 0 [19:59:51]OFD Sender: Remove packet 34465 [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00034465 [19:59:51]NVStorageDeleteData [19:59:51]Write to MH i2c: 01 00 00 A5 00 A5 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 12 0C CA [19:59:51]RasterBufferAndPrint [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]written 0, free lines is 3096 [19:59:51]MH_Cut [19:59:51]Write to MH i2c: D1 01 00 AC 00 01 7E [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 AC 00 00 7D [19:59:51]Write to MH i2c: 01 00 00 AD 00 AD [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]OFD Sender: No OFD packet to send [19:59:52]*** Cut start [19:59:52]*** Partial cut [19:59:52]*** CUTSNS_PIN = 1 [19:59:52]*** CUTSNS_PIN = 0 [19:59:52]*** Brake cut motor [19:59:52]Read from MH i2c: 01 [19:59:52]MH_I2C_Read... [19:59:52]*** Stop cut motor [19:59:52]*** Cut end [19:59:52]Read from MH i2c: 01 07 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [19:59:52]process_action close_receipt done [19:59:52]requested_data is exist [19:59:52]produce_requested_data [19:59:52]requested_item fm.sn is exist - process it [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 11 00 00 [19:59:52]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 [19:59:53]MH_I2C_Read... [19:59:53]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 35 30 39 35 90 00 7D [19:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:59:53]wFMCommunicate OK [19:59:53]requested_item fd.num is exist - process it [19:59:53]SAM_PROTO_GetFieldsCounters [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 00 00 [19:59:53]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 [19:59:53]MH_I2C_Read... [19:59:53]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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A1 86 00 00 0E 04 04 00 45 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 A3 [19:59: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A1 86 00 00 0E 04 04 00 45 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 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetFieldsCounters done [19:59:53]requested_item shift.num is exist - process it [19:59:53]requested_item shift.opened is exist - process it [19:59:53]req_shift_opened [19:59:53]FM_GetShiftState [19:59:53]SAM_PROTO_GetShiftState [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 01 00 [19:59:53]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 45 [19:59:53]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetShiftState done [19:59:53]FM_GetShiftState done [19:59:53]req_shift_opened done [19:59:53]requested_item shift.open_date is exist - process it [19:59:53]req_shift_open_date [19:59:53]req_shift_open_date done [19:59:53]produce_requested_data done [19:59:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34465,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [19:59:53]process_action_free close_receipt [19:59:53]json_value_free [19:59:53]json_value_free done [19:59:53]process_json_proto returns [19:59:53]Send response to host [19:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34465,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [19:59:53]free response buf [19:59:53]execute_script done [19:59:53]execute_script returns [19:59:53]free content buf [19:59:53]Sock 10.Close socket [19:59:53]Sock 10.Thread stoped [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:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:05]accept exits with 8 [20:03:05]New connection [20:03:05]New thread 3066625380 created [20:03:05]Thread 3066482020 joined [20:03:05]Waiting for new connection... [20:03:05] Sock 8.Parse request [20:03:05]Sock 8.Check first char [20:03:05]Sock 8.First char is OK [20:03:05]request: POST /json_proto HTTP/1.0 [20:03:05]Method: POST [20:03:05]URL: /json_proto [20:03:05]Method is POST - this is cgi request [20:03:05]url: /json_proto [20:03:05]query_string will be loaded in cgi processing [20:03:05]execute_cgi json_proto POST (null) [20:03:05]execute_cgi path=json_proto method=POST [20:03:05]POST find Content-Length [20:03:05]Host: 172.17.38.134:8080 [20:03:05]Content-Length: 621 [20:03:05]Content-Type: application/json [20:03:05] [20:03:05]POST finish read [20:03:05]Found Content-Length = 621 [20:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184235", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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" ] } } [20:03:05]execute_script... [20:03:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184235", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.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" ] } } [20:03:05]POST & json_proto [20:03:05]process_json_proto [20:03:05]json parsed OK: [20:03:05]protocol is kg_v1.0 [20:03:05]action value=close_receipt [20:03:05]process_action close_receipt [20:03:05]cmd_close_receipt [20:03:05]MH_GetDate [20:03:05]Write to MH i2c: F0 00 00 B1 00 A0 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 09 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 09 00 B1 00 00 FA 8A 74 66 13 9C 7C 64 96 [20:03:05]GetLastDocTimeStamp 1718913589 [20:03:05]current date 1718913786 [20:03:05]FM_GetShiftState [20:03:05]SAM_PROTO_GetShiftState [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 01 00 [20:03:05]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 47 [20:03:05]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetShiftState done [20:03:05]FM_GetShiftState done [20:03:05]opened in 1718843069 [20:03:05]opened+sec_in_day 1718929469 [20:03:05]quantity*price = 14000 [20:03:05]sum+1 = 14001 [20:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 76 20.06.2024 20:03 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34466 ФПД: 280764188918987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200307&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34466&fm=280764188918987&tin=02508201610067®Number=0000000000092786&sum=14000 0 [20:03:07]StoreToDocumentArchive [20:03:07]shift 325 fd 34466 [20:03:07]save to /storage/0325/doc_00034466 [20:03:07]save last doc name /storage/0325/doc_00034466 to /storage/kkm_last_doc_name [20:03:07]save OK [20:03:07]Clear old archive folders... [20:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:03:07]tlvbuf is 0205FC90 [20:03:07]SAM_PROTO_ClearQueue [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 09 00 00 [20:03:07]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]SAM_PROTO_ClearQueue done [20:03:07]KKMCreateOFDPacket [20:03:07]OFDProtocolAddRootSTLVToBuf [20:03:07]FM_MakeSignedData [20:03:07]FM_MakeSignedData [20:03:07]SAM_PROTO_SignData [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 01 02 [20:03:07]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=255 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4C 00 00 00 F4 03 04 00 FB 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [20:03:07]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4C 00 00 00 F4 03 04 00 FB 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 12 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=32 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 86 00 00 35 04 06 00 FF 5A 81 BF 04 CB [20:03:07]Write to MH i2c: E2 23 00 C2 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 86 00 00 35 04 06 00 FF 5A 81 BF 04 CB 00 00 2B [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 03 02 [20:03:07]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 C3 00 00 FF 86 2C 08 A9 F9 5D F5 90 00 EC [20:03:07]RAPDU: FF 86 2C 08 A9 F9 5D F5 90 00 [20:03:07]wFMCommunicate OK [20:03:07]SAM_PROTO_SignData done [20:03:07]FM_MakeSignedData done [20:03:07]CreateOFDProtocolMessage [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 11 00 00 [20:03:07]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 93 [20:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:03:07]wFMCommunicate OK [20:03:07]CreateOFDProtocolMessage done [20:03:07]OFDSenderStorePacket 34466 [20:03:07]StoreOFDPacket docnum=34466 [20:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 7C 28 1D 01 0C C0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4C 00 00 00 F4 03 04 00 FB 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 86 00 00 35 04 06 00 FF 5A 81 BF 04 CB FF 86 2C 08 A9 F9 5D F5 [20:03:07]CheckFolder [20:03:07]dirname=/storage/ofd_packets [20:03:07]CheckFolder done [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00034466 [20:03:07]NVStorageSaveData ofd_packets/00034466 [20:03:07]File name is /storage/ofd_packets/00034466 [20:03:07]Write 323 bytes [20:03:07]NVStorageSaveData done [20:03:07]OFDSenderStorePacket done [20:03:07]KKMCreateOFDPacket done [20:03:07]NVStorageSaveData kkm_last_timestamp [20:03:07]File name is /storage/kkm_last_timestamp [20:03:07]Write 4 bytes [20:03:07]NVStorageSaveData done [20:03:07]ExternCall_PrintAddStr [20:03:07]wPrintStart [20:03:07]Write to MH i2c: 01 00 00 C5 00 C5 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [20:03:07]RasterBufferAndPrint [20:03:07]line Счет N : (3)184235 [20:03:07]line ИНН: 02508201610067 [20:03:07]line Контрольно-Кассовый Чек [20:03:07]line ПРОДАЖА [20:03:07]line Товар: 48747059 [20:03:07]line Сигареты Winston Legend Blue [20:03:07]line 1.000 * 140.00 [20:03:07]line = 140.00 [20:03:07]line НДС 12% НСП 1% [20:03:07]line > о реализуемом товаре [20:03:07]line ИТОГО: 140.00 [20:03:07]line НСП 1% : 1.24 [20:03:07]line НДС 12% : 14.87 [20:03:07]line Наличными: 140.00 [20:03:07]line Безнал.: 0.00 [20:03:07]line Место: АЗС № 120 "Партнер Нефть" [20:03:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:03:07]line СНО: Общий режим [20:03:07]line Чек 76 20.06.2024 20:03 [20:03:07]line Смена: 325 ФФД: 1.0 [20:03:07]line ЗНМ: 0300000172 [20:03:07]line РНМ: 0000000000092786 [20:03:07]line Версия ККМ: 001 [20:03:07]line ФМ: 0000000000875095 [20:03:07]line ФД: 34466 [20:03:07]line ФПД: 280764188918987 [20:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200307&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34466&fm=280764188918987&tin=02508201610067®Number=0000000000092786&sum=14000 [20:03:07]line 0 [20:03:07]OFD Sender: Processing packet 34466 [packets to send 8, broken 7] [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00034466 [20:03:07]OFD Sender: To server: pG, [20:03:07]CommunicateWithHost lk.salyk.kg:30040 [20:03:07]ConnectInit lk.salyk.kg [20:03:07]written 0, free lines is 4095 [20:03:08]Connected sock=11 [20:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 7C 28 1D 01 0C C0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 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 4C 00 00 00 F4 03 04 00 FB 8A 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 86 00 00 35 04 06 00 FF 5A 81 BF 04 CB FF 86 2C 08 A9 F9 5D F5 [20:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 9C F9 47 00 18 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 86 00 00 F4 03 04 00 C3 31 74 66 B6 04 01 00 00 73 FC E0 16 BC FE C6 A6 [20:03:08]CommunicateWithHost err = 0 [20:03:08]CheckOFDResponse [20:03:08]1017 (14) - 77093643461234 [20:03:08]1041 (16) - 0000000000875095 [20:03:08]1040 (4) - 34466 [20:03:08]1012 (4) - 20.06.2024 13:42 [20:03:08]1206 (1) - 0 [20:03:08]OFD Sender: Remove packet 34466 [20:03:08]ProducePacketName [20:03:08]name=ofd_packets/00034466 [20:03:08]NVStorageDeleteData [20:03:08]Write to MH i2c: 01 00 00 EE 00 EE [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 07 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 DE 0C DF [20:03:08]RasterBufferAndPrint [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]written 0, free lines is 3300 [20:03:08]MH_Cut [20:03:08]Write to MH i2c: D1 01 00 F5 00 01 C7 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: D1 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: D1 01 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: D1 01 00 F5 00 00 C6 [20:03:08]Write to MH i2c: 01 00 00 F6 00 F6 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]OFD Sender: No OFD packet to send [20:03:09]*** Cut start [20:03:09]*** Partial cut [20:03:09]*** CUTSNS_PIN = 1 [20:03:09]*** CUTSNS_PIN = 0 [20:03:09]*** Brake cut motor [20:03:09]Read from MH i2c: 01 [20:03:09]MH_I2C_Read... [20:03:09]*** Stop cut motor [20:03:09]*** Cut end [20:03:09]Read from MH i2c: 01 07 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [20:03:09]process_action close_receipt done [20:03:09]requested_data is exist [20:03:09]produce_requested_data [20:03:09]requested_item fm.sn is exist - process it [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 11 00 00 [20:03:09]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 17 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C6 [20:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:03:09]wFMCommunicate OK [20:03:09]requested_item fd.num is exist - process it [20:03:09]SAM_PROTO_GetFieldsCounters [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 13 00 00 [20:03:09]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 62 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 62 00 F8 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A2 86 00 00 0E 04 04 00 45 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 F0 [20:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A2 86 00 00 0E 04 04 00 45 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 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetFieldsCounters done [20:03:09]requested_item shift.num is exist - process it [20:03:09]requested_item shift.opened is exist - process it [20:03:09]req_shift_opened [20:03:09]FM_GetShiftState [20:03:09]SAM_PROTO_GetShiftState [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 13 01 00 [20:03:09]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 8E [20:03:09]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetShiftState done [20:03:09]FM_GetShiftState done [20:03:09]req_shift_opened done [20:03:09]requested_item shift.open_date is exist - process it [20:03:09]req_shift_open_date [20:03:09]req_shift_open_date done [20:03:09]produce_requested_data done [20:03:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34466,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [20:03:09]process_action_free close_receipt [20:03:09]json_value_free [20:03:09]json_value_free done [20:03:09]process_json_proto returns [20:03:09]Send response to host [20:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34466,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [20:03:09]free response buf [20:03:09]execute_script done [20:03:09]execute_script returns [20:03:09]free content buf [20:03:09]Sock 8.Close socket [20:03:09]Sock 8.Thread stoped [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:05]accept exits with 9 [20:29:05]New connection [20:29:05]New thread 3066482020 created [20:29:05]Thread 3066625380 joined [20:29:05]Waiting for new connection... [20:29:05] Sock 9.Parse request [20:29:05]Sock 9.Check first char [20:29:05]Sock 9.First char is OK [20:29:05]request: POST /json_proto HTTP/1.0 [20:29:05]Method: POST [20:29:05]URL: /json_proto [20:29:05]Method is POST - this is cgi request [20:29:05]url: /json_proto [20:29:05]query_string will be loaded in cgi processing [20:29:05]execute_cgi json_proto POST (null) [20:29:05]execute_cgi path=json_proto method=POST [20:29:05]POST find Content-Length [20:29:05]Host: 172.17.38.134:8080 [20:29:05]Content-Length: 675 [20:29:05]Content-Type: application/json [20:29:05] [20:29:05]POST finish read [20:29:05]Found Content-Length = 675 [20:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184236", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:05]execute_script... [20:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184236", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:05]POST & json_proto [20:29:05]process_json_proto [20:29:05]json parsed OK: [20:29:05]protocol is kg_v1.0 [20:29:05]action value=close_receipt [20:29:05]process_action close_receipt [20:29:05]cmd_close_receipt [20:29:05]MH_GetDate [20:29:05]Write to MH i2c: F0 00 00 FA 00 E9 [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: F0 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: F0 09 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: F0 09 00 FA 00 00 13 91 74 66 13 9C 7C 64 FF [20:29:05]GetLastDocTimeStamp 1718913787 [20:29:05]current date 1718915347 [20:29:05]FM_GetShiftState [20:29:05]SAM_PROTO_GetShiftState [20:29:05]wFMCommunicate request_size=4 [20:29:05]MH_SAM_APDU [20:29:05]CAPDU: 80 13 01 00 [20:29:05]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [20:29:05]Write i2c OK [20:29:05]MH_I2C_Read... [20:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:05]Read from MH i2c: E2 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 0E 00 [20:29:05]MH_I2C_Read... [20:29:05]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 90 [20:29:05]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:29:05]wFMCommunicate OK [20:29:05]SAM_PROTO_GetShiftState done [20:29:05]FM_GetShiftState done [20:29:05]opened in 1718843069 [20:29:05]opened+sec_in_day 1718929469 [20:29:05]quantity*price = 12000 [20:29:05]sum+1 = 12001 [20:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 20.06.2024 20:29 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34467 ФПД: 26795526443360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T202907&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34467&fm=26795526443360&tin=02508201610067®Number=0000000000092786&sum=12000 0 [20:29:06]StoreToDocumentArchive [20:29:06]shift 325 fd 34467 [20:29:06]save to /storage/0325/doc_00034467 [20:29:06]save last doc name /storage/0325/doc_00034467 to /storage/kkm_last_doc_name [20:29:06]save OK [20:29:06]Clear old archive folders... [20:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:29:06]tlvbuf is 0205B560 [20:29:06]SAM_PROTO_ClearQueue [20:29:06]wFMCommunicate request_size=4 [20:29:06]MH_SAM_APDU [20:29:06]CAPDU: 80 09 00 00 [20:29:06]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]SAM_PROTO_ClearQueue done [20:29:07]KKMCreateOFDPacket [20:29:07]OFDProtocolAddRootSTLVToBuf [20:29:07]FM_MakeSignedData [20:29:07]FM_MakeSignedData [20:29:07]SAM_PROTO_SignData [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 01 02 [20:29:07]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=255 [20:29:07]MH_SAM_APDU [20:29:07]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 33 32 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 13 91 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [20:29:07]Write to MH i2c: E2 02 01 0A 01 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 33 32 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 13 91 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 99 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=46 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 02 02 29 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 86 00 00 35 04 06 00 18 5E D1 D5 D1 60 [20:29:07]Write to MH i2c: E2 31 00 0B 01 80 0D 02 02 29 00 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 86 00 00 35 04 06 00 18 5E D1 D5 D1 60 00 00 91 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [20:29:07]RAPDU: 90 00 [20:29:07]wFMCommunicate OK [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 0D 03 02 [20:29:07]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0B 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 0B 00 0C 01 00 8C 72 D7 2D 3F CA 50 6E 90 00 52 [20:29:07]RAPDU: 8C 72 D7 2D 3F CA 50 6E 90 00 [20:29:07]wFMCommunicate OK [20:29:07]SAM_PROTO_SignData done [20:29:07]FM_MakeSignedData done [20:29:07]CreateOFDProtocolMessage [20:29:07]wFMCommunicate request_size=4 [20:29:07]MH_SAM_APDU [20:29:07]CAPDU: 80 11 00 00 [20:29:07]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:07]Read from MH i2c: E2 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 17 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DD [20:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:29:07]wFMCommunicate OK [20:29:07]CreateOFDProtocolMessage done [20:29:07]OFDSenderStorePacket 34467 [20:29:07]StoreOFDPacket docnum=34467 [20:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 95 47 2B 01 3B 95 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 33 32 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 13 91 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 86 00 00 35 04 06 00 18 5E D1 D5 D1 60 8C 72 D7 2D 3F CA 50 6E [20:29:07]CheckFolder [20:29:07]dirname=/storage/ofd_packets [20:29:07]CheckFolder done [20:29:07]ProducePacketName [20:29:07]name=ofd_packets/00034467 [20:29:07]NVStorageSaveData ofd_packets/00034467 [20:29:07]File name is /storage/ofd_packets/00034467 [20:29:07]Write 337 bytes [20:29:07]NVStorageSaveData done [20:29:07]OFDSenderStorePacket done [20:29:07]KKMCreateOFDPacket done [20:29:07]NVStorageSaveData kkm_last_timestamp [20:29:07]File name is /storage/kkm_last_timestamp [20:29:07]Write 4 bytes [20:29:07]NVStorageSaveData done [20:29:07]ExternCall_PrintAddStr [20:29:07]wPrintStart [20:29:07]Write to MH i2c: 01 00 00 0E 01 0F [20:29:07]Write i2c OK [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 07 00 [20:29:07]MH_I2C_Read... [20:29:07]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [20:29:07]RasterBufferAndPrint [20:29:07]line Счет N : (3)184236 [20:29:07]line ИНН: 02508201610067 [20:29:07]line Контрольно-Кассовый Чек [20:29:07]line ПРОДАЖА [20:29:07]line Товар: 5449000189332 [20:29:07]line Холодный чай Fuse персик 1л [20:29:07]line 1.000 * 120.00 [20:29:07]line = 120.00 [20:29:07]line НДС 12% НСП 1% [20:29:07]line > о реализуемом товаре [20:29:07]line ИТОГО: 120.00 [20:29:07]line НСП 1% : 1.06 [20:29:07]line НДС 12% : 12.74 [20:29:07]line Наличными: 120.00 [20:29:07]line Безнал.: 0.00 [20:29:07]line Место: АЗС № 120 "Партнер Нефть" [20:29:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:29:07]line СНО: Общий режим [20:29:07]line Чек 77 20.06.2024 20:29 [20:29:07]line Смена: 325 ФФД: 1.0 [20:29:07]line ЗНМ: 0300000172 [20:29:07]line РНМ: 0000000000092786 [20:29:07]line Версия ККМ: 001 [20:29:07]line ФМ: 0000000000875095 [20:29:07]line ФД: 34467 [20:29:07]line ФПД: 26795526443360 [20:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T202907&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34467&fm=26795526443360&tin=02508201610067®Number=0000000000092786&sum=12000 [20:29:07]line 0 [20:29:07]OFD Sender: Processing packet 34467 [packets to send 8, broken 7] [20:29:07]ProducePacketName [20:29:07]name=ofd_packets/00034467 [20:29:07]OFD Sender: To server: pG, [20:29:07]CommunicateWithHost lk.salyk.kg:30040 [20:29:07]ConnectInit lk.salyk.kg [20:29:07]written 0, free lines is 4095 [20:29:08]Connected sock=10 [20:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 95 47 2B 01 3B 95 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 33 32 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 13 91 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 86 00 00 35 04 06 00 18 5E D1 D5 D1 60 8C 72 D7 2D 3F CA 50 6E [20:29:08]Write to MH i2c: 01 00 00 36 01 37 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: 01 07 00 [20:29:08]MH_I2C_Read... [20:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BD BB 47 00 E5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 86 00 00 F4 03 04 00 DB 37 74 66 B6 04 01 00 00 C2 A2 F7 DC 1E 2E 30 66 [20:29:08]CommunicateWithHost err = 0 [20:29:08]CheckOFDResponse [20:29:08]1017 (14) - 77093643461234 [20:29:08]1041 (16) - 0000000000875095 [20:29:08]1040 (4) - 34467 [20:29:08]1012 (4) - 20.06.2024 14:08 [20:29:08]1206 (1) - 0 [20:29:08]OFD Sender: Remove packet 34467 [20:29:08]ProducePacketName [20:29:08]name=ofd_packets/00034467 [20:29:08]NVStorageDeleteData [20:29:08]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 FD 0C 47 [20:29:08]RasterBufferAndPrint [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]line [20:29:08]written 0, free lines is 3371 [20:29:08]MH_Cut [20:29:08]Write to MH i2c: D1 01 00 3D 01 01 10 [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 01 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: D1 01 00 3D 01 00 0F [20:29:08]Write to MH i2c: 01 00 00 3E 01 3F [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]OFD Sender: No OFD packet to send [20:29:09]*** Cut start [20:29:09]*** Partial cut [20:29:09]*** CUTSNS_PIN = 1 [20:29:09]*** CUTSNS_PIN = 0 [20:29:09]*** Brake cut motor [20:29:09]Read from MH i2c: 01 [20:29:09]MH_I2C_Read... [20:29:09]*** Stop cut motor [20:29:09]*** Cut end [20:29:09]Read from MH i2c: 01 07 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [20:29:09]process_action close_receipt done [20:29:09]requested_data is exist [20:29:09]produce_requested_data [20:29:09]requested_item fm.sn is exist - process it [20:29:09]wFMCommunicate request_size=4 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 11 00 00 [20:29:09]Write to MH i2c: E2 08 00 3F 01 80 11 00 00 00 00 00 00 BA [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:09]Read from MH i2c: E2 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 17 00 [20:29:09]MH_I2C_Read... [20:29:09]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 35 30 39 35 90 00 0F [20:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:29:09]wFMCommunicate OK [20:29:09]requested_item fd.num is exist - process it [20:29:09]SAM_PROTO_GetFieldsCounters [20:29:09]wFMCommunicate request_size=4 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 13 00 00 [20:29:09]Write to MH i2c: E2 08 00 40 01 80 13 00 00 00 00 00 00 BD [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:09]Read from MH i2c: E2 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 62 00 [20:29:09]MH_I2C_Read... [20:29:09]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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A3 86 00 00 0E 04 04 00 45 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 3D [20:29: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A3 86 00 00 0E 04 04 00 45 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 [20:29:09]wFMCommunicate OK [20:29:09]SAM_PROTO_GetFieldsCounters done [20:29:09]requested_item shift.num is exist - process it [20:29:09]requested_item shift.opened is exist - process it [20:29:09]req_shift_opened [20:29:09]FM_GetShiftState [20:29:09]SAM_PROTO_GetShiftState [20:29:09]wFMCommunicate request_size=4 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 13 01 00 [20:29:09]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:09]Read from MH i2c: E2 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 0E 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 D7 [20:29:09]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:29:09]wFMCommunicate OK [20:29:09]SAM_PROTO_GetShiftState done [20:29:09]FM_GetShiftState done [20:29:09]req_shift_opened done [20:29:09]requested_item shift.open_date is exist - process it [20:29:09]req_shift_open_date [20:29:09]req_shift_open_date done [20:29:09]produce_requested_data done [20:29:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34467,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [20:29:09]process_action_free close_receipt [20:29:09]json_value_free [20:29:09]json_value_free done [20:29:09]process_json_proto returns [20:29:09]Send response to host [20:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34467,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [20:29:09]free response buf [20:29:09]execute_script done [20:29:09]execute_script returns [20:29:09]free content buf [20:29:09]Sock 9.Close socket [20:29:09]Sock 9.Thread stoped [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:39]accept exits with 8 [20:37:39]New connection [20:37:39]New thread 3066625380 created [20:37:39]Thread 3066482020 joined [20:37:39]Waiting for new connection... [20:37:39] Sock 8.Parse request [20:37:39]Sock 8.Check first char [20:37:39]Sock 8.First char is OK [20:37:39]request: POST /json_proto HTTP/1.0 [20:37:39]Method: POST [20:37:39]URL: /json_proto [20:37:39]Method is POST - this is cgi request [20:37:39]url: /json_proto [20:37:39]query_string will be loaded in cgi processing [20:37:39]execute_cgi json_proto POST (null) [20:37:39]execute_cgi path=json_proto method=POST [20:37:39]POST find Content-Length [20:37:39]Host: 172.17.38.134:8080 [20:37:39]Content-Length: 672 [20:37:39]Content-Type: application/json [20:37:39] [20:37:39]POST finish read [20:37:39]Found Content-Length = 672 [20:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184237", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:39]execute_script... [20:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184237", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:39]POST & json_proto [20:37:39]process_json_proto [20:37:39]json parsed OK: [20:37:39]protocol is kg_v1.0 [20:37:39]action value=close_receipt [20:37:39]process_action close_receipt [20:37:39]cmd_close_receipt [20:37:39]MH_GetDate [20:37:39]Write to MH i2c: F0 00 00 42 01 32 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: F0 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: F0 09 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: F0 09 00 42 01 00 15 93 74 66 13 9C 7C 64 4C [20:37:39]GetLastDocTimeStamp 1718915347 [20:37:39]current date 1718915861 [20:37:39]FM_GetShiftState [20:37:39]SAM_PROTO_GetShiftState [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 13 01 00 [20:37:39]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 0E 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 D9 [20:37:39]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:37:39]wFMCommunicate OK [20:37:39]SAM_PROTO_GetShiftState done [20:37:39]FM_GetShiftState done [20:37:39]opened in 1718843069 [20:37:39]opened+sec_in_day 1718929469 [20:37:39]quantity*price = 4900 [20:37:39]sum+1 = 4901 [20:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 78 20.06.2024 20:37 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34468 ФПД: 261444372585871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203741&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34468&fm=261444372585871&tin=02508201610067®Number=0000000000092786&sum=4900 0 [20:37:41]StoreToDocumentArchive [20:37:41]shift 325 fd 34468 [20:37:41]save to /storage/0325/doc_00034468 [20:37:41]save last doc name /storage/0325/doc_00034468 to /storage/kkm_last_doc_name [20:37:41]save OK [20:37:41]Clear old archive folders... [20:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=287 [20:37:41]tlvbuf is 0204D2F0 [20:37:41]SAM_PROTO_ClearQueue [20:37:41]wFMCommunicate request_size=4 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 09 00 00 [20:37:41]Write to MH i2c: E2 08 00 50 01 80 09 00 00 00 00 00 00 C3 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [20:37:41]RAPDU: 90 00 [20:37:41]wFMCommunicate OK [20:37:41]SAM_PROTO_ClearQueue done [20:37:41]KKMCreateOFDPacket [20:37:41]OFDProtocolAddRootSTLVToBuf [20:37:41]FM_MakeSignedData [20:37:41]FM_MakeSignedData [20:37:41]SAM_PROTO_SignData [20:37:41]wFMCommunicate request_size=4 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 0D 01 02 [20:37:41]Write to MH i2c: E2 08 00 51 01 80 0D 01 02 00 00 00 00 CB [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [20:37:41]RAPDU: 90 00 [20:37:41]wFMCommunicate OK [20:37:41]wFMCommunicate request_size=255 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 4E 00 00 00 F4 03 04 00 15 93 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [20:37:41]Write to MH i2c: E2 02 01 52 01 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 4E 00 00 00 F4 03 04 00 15 93 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 8A [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:41]Read from MH i2c: E2 03 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [20:37:41]RAPDU: 90 00 [20:37:41]wFMCommunicate OK [20:37:41]wFMCommunicate request_size=46 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 0D 02 02 29 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 86 00 00 35 04 06 00 ED C8 42 F4 DD 8F [20:37:41]Write to MH i2c: E2 31 00 53 01 80 0D 02 02 29 00 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 86 00 00 35 04 06 00 ED C8 42 F4 DD 8F 00 00 E4 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [20:37:41]RAPDU: 90 00 [20:37:41]wFMCommunicate OK [20:37:41]wFMCommunicate request_size=4 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 0D 03 02 [20:37:41]Write to MH i2c: E2 08 00 54 01 80 0D 03 02 00 00 00 00 D0 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 0B 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 0B 00 54 01 00 E1 6A AA 6E EC EB 27 A2 90 00 D4 [20:37:41]RAPDU: E1 6A AA 6E EC EB 27 A2 90 00 [20:37:41]wFMCommunicate OK [20:37:41]SAM_PROTO_SignData done [20:37:41]FM_MakeSignedData done [20:37:41]CreateOFDProtocolMessage [20:37:41]wFMCommunicate request_size=4 [20:37:41]MH_SAM_APDU [20:37:41]CAPDU: 80 11 00 00 [20:37:41]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:41]Read from MH i2c: E2 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 17 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 25 [20:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:37:41]wFMCommunicate OK [20:37:41]CreateOFDProtocolMessage done [20:37:41]OFDSenderStorePacket 34468 [20:37:41]StoreOFDPacket docnum=34468 [20:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 8F EF 2B 01 E9 C8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 4E 00 00 00 F4 03 04 00 15 93 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 86 00 00 35 04 06 00 ED C8 42 F4 DD 8F E1 6A AA 6E EC EB 27 A2 [20:37:41]CheckFolder [20:37:41]dirname=/storage/ofd_packets [20:37:41]CheckFolder done [20:37:41]ProducePacketName [20:37:41]name=ofd_packets/00034468 [20:37:41]NVStorageSaveData ofd_packets/00034468 [20:37:41]File name is /storage/ofd_packets/00034468 [20:37:41]Write 337 bytes [20:37:41]NVStorageSaveData done [20:37:41]OFDSenderStorePacket done [20:37:41]KKMCreateOFDPacket done [20:37:41]NVStorageSaveData kkm_last_timestamp [20:37:41]File name is /storage/kkm_last_timestamp [20:37:41]Write 4 bytes [20:37:41]NVStorageSaveData done [20:37:41]ExternCall_PrintAddStr [20:37:41]wPrintStart [20:37:41]Write to MH i2c: 01 00 00 56 01 57 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 07 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [20:37:41]RasterBufferAndPrint [20:37:41]line Счет N : (3)184237 [20:37:41]line ИНН: 02508201610067 [20:37:41]line Контрольно-Кассовый Чек [20:37:41]line ПРОДАЖА [20:37:41]line Товар: 46214621 [20:37:41]line Р/ж mentos тутти-фрутти ролл 16г [20:37:41]line 1.000 * 49.00 [20:37:41]line = 49.00 [20:37:41]line НДС 12% НСП 1% [20:37:41]line > о реализуемом товаре [20:37:41]line ИТОГО: 49.00 [20:37:41]line НСП 1% : 0.43 [20:37:41]line НДС 12% : 5.20 [20:37:41]line Наличными: 49.00 [20:37:41]line Безнал.: 0.00 [20:37:41]line Место: АЗС № 120 "Партнер Нефть" [20:37:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:37:41]line СНО: Общий режим [20:37:41]line Чек 78 20.06.2024 20:37 [20:37:41]line Смена: 325 ФФД: 1.0 [20:37:41]line ЗНМ: 0300000172 [20:37:41]line РНМ: 0000000000092786 [20:37:41]line Версия ККМ: 001 [20:37:41]line ФМ: 0000000000875095 [20:37:41]line ФД: 34468 [20:37:41]line ФПД: 261444372585871 [20:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203741&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34468&fm=261444372585871&tin=02508201610067®Number=0000000000092786&sum=4900 [20:37:41]line 0 [20:37:41]OFD Sender: Processing packet 34468 [packets to send 8, broken 7] [20:37:41]ProducePacketName [20:37:41]name=ofd_packets/00034468 [20:37:41]OFD Sender: To server: pG, [20:37:41]CommunicateWithHost lk.salyk.kg:30040 [20:37:41]ConnectInit lk.salyk.kg [20:37:41]written 0, free lines is 4095 [20:37:42]Connected sock=10 [20:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 33 01 00 00 8F EF 2B 01 E9 C8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 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 4E 00 00 00 F4 03 04 00 15 93 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 86 00 00 35 04 06 00 ED C8 42 F4 DD 8F E1 6A AA 6E EC EB 27 A2 [20:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BD 3A 47 00 D0 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 35 30 39 35 10 04 04 00 A4 86 00 00 F4 03 04 00 DD 39 74 66 B6 04 01 00 00 4D 1A C7 B8 AD 02 C6 6D [20:37:42]CommunicateWithHost err = 0 [20:37:42]CheckOFDResponse [20:37:42]1017 (14) - 77093643461234 [20:37:42]1041 (16) - 0000000000875095 [20:37:42]1040 (4) - 34468 [20:37:42]1012 (4) - 20.06.2024 14:17 [20:37:42]1206 (1) - 0 [20:37:42]OFD Sender: Remove packet 34468 [20:37:42]ProducePacketName [20:37:42]name=ofd_packets/00034468 [20:37:42]NVStorageDeleteData [20:37:42]Write to MH i2c: 01 00 00 7F 01 80 [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: 01 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: 01 07 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 F2 0C 85 [20:37:42]RasterBufferAndPrint [20:37:42]line [20:37:42]line [20:37:42]line [20:37:42]line [20:37:42]line [20:37:42]written 0, free lines is 3320 [20:37:42]MH_Cut [20:37:42]Write to MH i2c: D1 01 00 86 01 01 59 [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: D1 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: D1 01 00 [20:37:42]MH_I2C_Read... [20:37:42]Read from MH i2c: D1 01 00 86 01 00 58 [20:37:42]Write to MH i2c: 01 00 00 87 01 88 [20:37:42]Write i2c OK [20:37:42]MH_I2C_Read... [20:37:42]OFD Sender: No OFD packet to send [20:37:43]*** Cut start [20:37:43]*** Partial cut [20:37:43]*** CUTSNS_PIN = 1 [20:37:43]*** CUTSNS_PIN = 0 [20:37:43]*** Brake cut motor [20:37:43]Read from MH i2c: 01 [20:37:43]MH_I2C_Read... [20:37:43]*** Stop cut motor [20:37:43]*** Cut end [20:37:43]Read from MH i2c: 01 07 00 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FF 0F 9D [20:37:43]process_action close_receipt done [20:37:43]requested_data is exist [20:37:43]produce_requested_data [20:37:43]requested_item fm.sn is exist - process it [20:37:43]wFMCommunicate request_size=4 [20:37:43]MH_SAM_APDU [20:37:43]CAPDU: 80 11 00 00 [20:37:43]Write to MH i2c: E2 08 00 88 01 80 11 00 00 00 00 00 00 03 [20:37:43]Write i2c OK [20:37:43]MH_I2C_Read... [20:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:43]Read from MH i2c: E2 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 17 00 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 17 00 88 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 58 [20:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:37:43]wFMCommunicate OK [20:37:43]requested_item fd.num is exist - process it [20:37:43]SAM_PROTO_GetFieldsCounters [20:37:43]wFMCommunicate request_size=4 [20:37:43]MH_SAM_APDU [20:37:43]CAPDU: 80 13 00 00 [20:37:43]Write to MH i2c: E2 08 00 89 01 80 13 00 00 00 00 00 00 06 [20:37:43]Write i2c OK [20:37:43]MH_I2C_Read... [20:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:43]Read from MH i2c: E2 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 62 00 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 62 00 89 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A4 86 00 00 0E 04 04 00 45 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 8A [20:37: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A4 86 00 00 0E 04 04 00 45 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 [20:37:43]wFMCommunicate OK [20:37:43]SAM_PROTO_GetFieldsCounters done [20:37:43]requested_item shift.num is exist - process it [20:37:43]requested_item shift.opened is exist - process it [20:37:43]req_shift_opened [20:37:43]FM_GetShiftState [20:37:43]SAM_PROTO_GetShiftState [20:37:43]wFMCommunicate request_size=4 [20:37:43]MH_SAM_APDU [20:37:43]CAPDU: 80 13 01 00 [20:37:43]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [20:37:43]Write i2c OK [20:37:43]MH_I2C_Read... [20:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:43]Read from MH i2c: E2 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 0E 00 [20:37:43]MH_I2C_Read... [20:37:43]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 20 [20:37:43]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [20:37:43]wFMCommunicate OK [20:37:43]SAM_PROTO_GetShiftState done [20:37:43]FM_GetShiftState done [20:37:43]req_shift_opened done [20:37:43]requested_item shift.open_date is exist - process it [20:37:43]req_shift_open_date [20:37:43]req_shift_open_date done [20:37:43]produce_requested_data done [20:37:43]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34468,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [20:37:43]process_action_free close_receipt [20:37:43]json_value_free [20:37:43]json_value_free done [20:37:43]process_json_proto returns [20:37:43]Send response to host [20:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34468,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [20:37:43]free response buf [20:37:43]execute_script done [20:37:43]execute_script returns [20:37:43]free content buf [20:37:43]Sock 8.Close socket [20:37:43]Sock 8.Thread stoped [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [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: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:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:52:57]ConnectInit Can't connect to host [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:59:08]ConnectInit Can't connect to host [20:59:13]OFD Sender: Processing packet 34469 [packets to send 8, broken 7] [20:59:13]ProducePacketName [20:59:13]name=ofd_packets/00034469 [20:59:13]OFD Sender: To server: pG, [20:59:13]CommunicateWithHost lk.salyk.kg:30040 [20:59:13]ConnectInit lk.salyk.kg [20:59:13]Connected sock=9 [20:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 76 EA 3C 01 24 39 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 4F 00 00 00 F4 03 04 00 02 98 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 86 00 00 35 04 06 00 ED 81 C1 D7 1A 0A 9F 7A 81 85 08 6A 3F 18 [20:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 00 55 47 00 24 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 86 00 00 F4 03 04 00 E9 3E 74 66 B6 04 01 00 00 79 CD BA 5B 77 A6 B1 1E [20:59:14]CommunicateWithHost err = 0 [20:59:14]CheckOFDResponse [20:59:14]1017 (14) - 77093643461234 [20:59:14]1041 (16) - 0000000000875095 [20:59:14]1040 (4) - 34469 [20:59:14]1012 (4) - 20.06.2024 14:38 [20:59:14]1206 (1) - 0 [20:59:14]OFD Sender: Remove packet 34469 [20:59:14]ProducePacketName [20:59:14]name=ofd_packets/00034469 [20:59:14]NVStorageDeleteData [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]accept exits with 7 [21:26:15]New connection [21:26:15]New thread 3066555748 created [21:26:15]Thread 3066699108 joined [21:26:15]Waiting for new connection... [21:26:15] Sock 7.Parse request [21:26:15]Sock 7.Check first char [21:26:15]Sock 7.First char is OK [21:26:15]request: POST /json_proto HTTP/1.0 [21:26:15]Method: POST [21:26:15]URL: /json_proto [21:26:15]Method is POST - this is cgi request [21:26:15]url: /json_proto [21:26:15]query_string will be loaded in cgi processing [21:26:15]execute_cgi json_proto POST (null) [21:26:15]execute_cgi path=json_proto method=POST [21:26:15]POST find Content-Length [21:26:15]Host: 172.17.38.134:8080 [21:26:15]Content-Length: 740 [21:26:15]Content-Type: application/json [21:26:15] [21:26:15]POST finish read [21:26:15]Found Content-Length = 740 [21:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184239", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:15]execute_script... [21:26: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)184239", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:15]POST & json_proto [21:26:15]process_json_proto [21:26:15]json parsed OK: [21:26:15]protocol is kg_v1.0 [21:26:15]action value=close_receipt [21:26:15]process_action close_receipt [21:26:15]cmd_close_receipt [21:26:15]MH_GetDate [21:26:15]Write to MH i2c: F0 00 00 59 00 48 [21:26:15]Write i2c OK [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: F0 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: F0 09 00 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: F0 09 00 59 00 00 77 9E 74 66 13 9C 7C 64 CF [21:26:15]GetLastDocTimeStamp 1718917122 [21:26:15]current date 1718918775 [21:26:15]FM_GetShiftState [21:26:15]SAM_PROTO_GetShiftState [21:26:15]wFMCommunicate request_size=4 [21:26:15]MH_SAM_APDU [21:26:15]CAPDU: 80 13 01 00 [21:26:15]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [21:26:15]Write i2c OK [21:26:15]MH_I2C_Read... [21:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:15]Read from MH i2c: E2 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: E2 0E 00 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 EF [21:26:15]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [21:26:15]wFMCommunicate OK [21:26:15]SAM_PROTO_GetShiftState done [21:26:15]FM_GetShiftState done [21:26:15]opened in 1718843069 [21:26:15]opened+sec_in_day 1718929469 [21:26:15]quantity*price = 9500 [21:26:15]sum+1 = 9501 [21:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 20.06.2024 21:26 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34470 ФПД: 155352807892232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34470&fm=155352807892232&tin=02508201610067®Number=0000000000092786&sum=9500 0 [21:26:16]StoreToDocumentArchive [21:26:16]shift 325 fd 34470 [21:26:16]save to /storage/0325/doc_00034470 [21:26:16]save last doc name /storage/0325/doc_00034470 to /storage/kkm_last_doc_name [21:26:16]save OK [21:26:16]Clear old archive folders... [21:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=311 [21:26:16]tlvbuf is 00216660 [21:26:16]SAM_PROTO_ClearQueue [21:26:16]wFMCommunicate request_size=4 [21:26:16]MH_SAM_APDU [21:26:16]CAPDU: 80 09 00 00 [21:26:16]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:16]Read from MH i2c: E2 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: E2 03 00 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [21:26:16]RAPDU: 90 00 [21:26:16]wFMCommunicate OK [21:26:16]SAM_PROTO_ClearQueue done [21:26:16]KKMCreateOFDPacket [21:26:16]OFDProtocolAddRootSTLVToBuf [21:26:16]FM_MakeSignedData [21:26:16]FM_MakeSignedData [21:26:16]SAM_PROTO_SignData [21:26:16]wFMCommunicate request_size=4 [21:26:16]MH_SAM_APDU [21:26:16]CAPDU: 80 0D 01 02 [21:26:16]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:16]Read from MH i2c: E2 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: E2 03 00 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [21:26:16]RAPDU: 90 00 [21:26:16]wFMCommunicate OK [21:26:16]wFMCommunicate request_size=255 [21:26:16]MH_SAM_APDU [21:26:16]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 78 9E 74 66 0E 04 04 00 45 01 [21:26:16]Write to MH i2c: E2 02 01 69 00 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 78 9E 74 66 0E 04 04 00 45 01 00 00 F2 [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:17]Read from MH i2c: E2 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 03 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [21:26:17]RAPDU: 90 00 [21:26:17]wFMCommunicate OK [21:26:17]wFMCommunicate request_size=70 [21:26:17]MH_SAM_APDU [21:26:17]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 86 00 00 35 04 06 00 8D 4A E4 ED E5 08 [21:26:17]Write to MH i2c: E2 49 00 6A 00 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 86 00 00 35 04 06 00 8D 4A E4 ED E5 08 00 00 C5 [21:26:17]Write i2c OK [21:26:17]MH_I2C_Read... [21:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:17]Read from MH i2c: E2 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 03 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [21:26:17]RAPDU: 90 00 [21:26:17]wFMCommunicate OK [21:26:17]wFMCommunicate request_size=4 [21:26:17]MH_SAM_APDU [21:26:17]CAPDU: 80 0D 03 02 [21:26:17]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [21:26:17]Write i2c OK [21:26:17]MH_I2C_Read... [21:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:17]Read from MH i2c: E2 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 0B 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 0B 00 6B 00 00 FE 64 BE FF D9 25 BB 7C 90 00 3B [21:26:17]RAPDU: FE 64 BE FF D9 25 BB 7C 90 00 [21:26:17]wFMCommunicate OK [21:26:17]SAM_PROTO_SignData done [21:26:17]FM_MakeSignedData done [21:26:17]CreateOFDProtocolMessage [21:26:17]wFMCommunicate request_size=4 [21:26:17]MH_SAM_APDU [21:26:17]CAPDU: 80 11 00 00 [21:26:17]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [21:26:17]Write i2c OK [21:26:17]MH_I2C_Read... [21:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:17]Read from MH i2c: E2 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 17 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3B [21:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:26:17]wFMCommunicate OK [21:26:17]CreateOFDProtocolMessage done [21:26:17]OFDSenderStorePacket 34470 [21:26:17]StoreOFDPacket docnum=34470 [21:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4B 01 00 00 EA 34 43 01 70 21 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 78 9E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 86 00 00 35 04 06 00 8D 4A E4 ED E5 08 FE 64 BE FF D9 25 BB 7C [21:26:17]CheckFolder [21:26:17]dirname=/storage/ofd_packets [21:26:17]CheckFolder done [21:26:17]ProducePacketName [21:26:17]name=ofd_packets/00034470 [21:26:17]NVStorageSaveData ofd_packets/00034470 [21:26:17]File name is /storage/ofd_packets/00034470 [21:26:17]Write 361 bytes [21:26:17]NVStorageSaveData done [21:26:17]OFDSenderStorePacket done [21:26:17]KKMCreateOFDPacket done [21:26:17]NVStorageSaveData kkm_last_timestamp [21:26:17]File name is /storage/kkm_last_timestamp [21:26:17]Write 4 bytes [21:26:17]NVStorageSaveData done [21:26:17]ExternCall_PrintAddStr [21:26:17]wPrintStart [21:26:17]Write to MH i2c: 01 00 00 6D 00 6D [21:26:17]Write i2c OK [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 07 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [21:26:17]RasterBufferAndPrint [21:26:17]line Счет N : (3)184239 [21:26:17]line ИНН: 02508201610067 [21:26:17]line Контрольно-Кассовый Чек [21:26:17]line ПРОДАЖА [21:26:17]line Товар: 4700000481972 [21:26:17]line Напиток энерг Nitro грейпфрут-маракуйя 0 [21:26:17]line 1.000 * 95.00 [21:26:17]line = 95.00 [21:26:17]line НДС 12% НСП 1% [21:26:17]line > о реализуемом товаре [21:26:17]line ИТОГО: 95.00 [21:26:17]line НСП 1% : 0.84 [21:26:17]line НДС 12% : 10.09 [21:26:17]line Наличными: 95.00 [21:26:17]line Безнал.: 0.00 [21:26:17]line Место: АЗС № 120 "Партнер Нефть" [21:26:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:26:17]line СНО: Общий режим [21:26:17]line Чек 80 20.06.2024 21:26 [21:26:17]line Смена: 325 ФФД: 1.0 [21:26:17]line ЗНМ: 0300000172 [21:26:17]line РНМ: 0000000000092786 [21:26:17]line Версия ККМ: 001 [21:26:17]line ФМ: 0000000000875095 [21:26:17]line ФД: 34470 [21:26:17]line ФПД: 155352807892232 [21:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34470&fm=155352807892232&tin=02508201610067®Number=0000000000092786&sum=9500 [21:26:17]OFD Sender: Processing packet 34470 [packets to send 8, broken 7] [21:26:17]ProducePacketName [21:26:17]name=ofd_packets/00034470 [21:26:17]OFD Sender: To server: pG, [21:26:17]CommunicateWithHost lk.salyk.kg:30040 [21:26:17]ConnectInit lk.salyk.kg [21:26:17]line 0 [21:26:17]written 0, free lines is 4095 [21:26:17]Connected sock=10 [21:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4B 01 00 00 EA 34 43 01 70 21 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 78 9E 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 86 00 00 35 04 06 00 8D 4A E4 ED E5 08 FE 64 BE FF D9 25 BB 7C [21:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BF 67 47 00 EB 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 35 30 39 35 10 04 04 00 A6 86 00 00 F4 03 04 00 40 45 74 66 B6 04 01 00 00 66 A3 A7 18 78 94 09 7B [21:26:17]CommunicateWithHost err = 0 [21:26:17]CheckOFDResponse [21:26:17]1017 (14) - 77093643461234 [21:26:17]1041 (16) - 0000000000875095 [21:26:17]1040 (4) - 34470 [21:26:17]1012 (4) - 20.06.2024 15:05 [21:26:17]1206 (1) - 0 [21:26:17]OFD Sender: Remove packet 34470 [21:26:17]ProducePacketName [21:26:17]name=ofd_packets/00034470 [21:26:17]NVStorageDeleteData [21:26:18]Write to MH i2c: 01 00 00 96 00 96 [21:26:18]Write i2c OK [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: 01 [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: 01 07 00 [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FC 0C A5 [21:26:18]RasterBufferAndPrint [21:26:18]line [21:26:18]line [21:26:18]line [21:26:18]line [21:26:18]line [21:26:18]written 0, free lines is 3333 [21:26:18]MH_Cut [21:26:18]Write to MH i2c: D1 01 00 9D 00 01 6F [21:26:18]Write i2c OK [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: D1 [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: D1 01 00 [21:26:18]MH_I2C_Read... [21:26:18]Read from MH i2c: D1 01 00 9D 00 00 6E [21:26:18]Write to MH i2c: 01 00 00 9E 00 9E [21:26:18]Write i2c OK [21:26:18]MH_I2C_Read... [21:26:18]OFD Sender: No OFD packet to send [21:26:18]*** Cut start [21:26:18]*** Partial cut [21:26:18]*** CUTSNS_PIN = 1 [21:26:18]*** CUTSNS_PIN = 0 [21:26:18]*** Brake cut motor [21:26:19]Read from MH i2c: 01 [21:26:19]MH_I2C_Read... [21:26:19]*** Stop cut motor [21:26:19]*** Cut end [21:26:19]Read from MH i2c: 01 07 00 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [21:26:19]process_action close_receipt done [21:26:19]requested_data is exist [21:26:19]produce_requested_data [21:26:19]requested_item fm.sn is exist - process it [21:26:19]wFMCommunicate request_size=4 [21:26:19]MH_SAM_APDU [21:26:19]CAPDU: 80 11 00 00 [21:26:19]Write to MH i2c: E2 08 00 9F 00 80 11 00 00 00 00 00 00 19 [21:26:19]Write i2c OK [21:26:19]MH_I2C_Read... [21:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:19]Read from MH i2c: E2 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 17 00 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 17 00 9F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6E [21:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:26:19]wFMCommunicate OK [21:26:19]requested_item fd.num is exist - process it [21:26:19]SAM_PROTO_GetFieldsCounters [21:26:19]wFMCommunicate request_size=4 [21:26:19]MH_SAM_APDU [21:26:19]CAPDU: 80 13 00 00 [21:26:19]Write to MH i2c: E2 08 00 A0 00 80 13 00 00 00 00 00 00 1C [21:26:19]Write i2c OK [21:26:19]MH_I2C_Read... [21:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:19]Read from MH i2c: E2 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 62 00 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 62 00 A0 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A6 86 00 00 0E 04 04 00 45 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 A8 [21:26: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A6 86 00 00 0E 04 04 00 45 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 [21:26:19]wFMCommunicate OK [21:26:19]SAM_PROTO_GetFieldsCounters done [21:26:19]requested_item shift.num is exist - process it [21:26:19]requested_item shift.opened is exist - process it [21:26:19]req_shift_opened [21:26:19]FM_GetShiftState [21:26:19]SAM_PROTO_GetShiftState [21:26:19]wFMCommunicate request_size=4 [21:26:19]MH_SAM_APDU [21:26:19]CAPDU: 80 13 01 00 [21:26:19]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [21:26:19]Write i2c OK [21:26:19]MH_I2C_Read... [21:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:19]Read from MH i2c: E2 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 0E 00 [21:26:19]MH_I2C_Read... [21:26:19]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 36 [21:26:19]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [21:26:19]wFMCommunicate OK [21:26:19]SAM_PROTO_GetShiftState done [21:26:19]FM_GetShiftState done [21:26:19]req_shift_opened done [21:26:19]requested_item shift.open_date is exist - process it [21:26:19]req_shift_open_date [21:26:19]req_shift_open_date done [21:26:19]produce_requested_data done [21:26:19]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34470,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [21:26:19]process_action_free close_receipt [21:26:19]json_value_free [21:26:19]json_value_free done [21:26:19]process_json_proto returns [21:26:19]Send response to host [21:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34470,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [21:26:19]free response buf [21:26:19]execute_script done [21:26:19]execute_script returns [21:26:19]free content buf [21:26:19]Sock 7.Close socket [21:26:19]Sock 7.Thread stoped [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [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:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:58]accept exits with 9 [21:58:58]New connection [21:58:58]New thread 3066699108 created [21:58:58]Thread 3066555748 joined [21:58:58]Waiting for new connection... [21:58:58] Sock 9.Parse request [21:58:58]Sock 9.Check first char [21:58:58]Sock 9.First char is OK [21:58:58]request: POST /json_proto HTTP/1.0 [21:58:58]Method: POST [21:58:58]URL: /json_proto [21:58:58]Method is POST - this is cgi request [21:58:58]url: /json_proto [21:58:58]query_string will be loaded in cgi processing [21:58:58]execute_cgi json_proto POST (null) [21:58:58]execute_cgi path=json_proto method=POST [21:58:58]POST find Content-Length [21:58:58]Host: 172.17.38.134:8080 [21:58:58]Content-Length: 718 [21:58:58]Content-Type: application/json [21:58:58] [21:58:58]POST finish read [21:58:58]Found Content-Length = 718 [21:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184240", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:58]execute_script... [21:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184240", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:58]POST & json_proto [21:58:58]process_json_proto [21:58:58]json parsed OK: [21:58:58]protocol is kg_v1.0 [21:58:58]action value=close_receipt [21:58:58]process_action close_receipt [21:58:58]cmd_close_receipt [21:58:58]MH_GetDate [21:58:58]Write to MH i2c: F0 00 00 A2 00 91 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 09 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 09 00 A2 00 00 23 A6 74 66 13 9C 7C 64 CC [21:58:58]GetLastDocTimeStamp 1718918776 [21:58:58]current date 1718920739 [21:58:58]FM_GetShiftState [21:58:58]SAM_PROTO_GetShiftState [21:58:58]wFMCommunicate request_size=4 [21:58:58]MH_SAM_APDU [21:58:58]CAPDU: 80 13 01 00 [21:58:58]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:58]Read from MH i2c: E2 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: E2 0E 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 38 [21:58:58]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [21:58:58]wFMCommunicate OK [21:58:58]SAM_PROTO_GetShiftState done [21:58:58]FM_GetShiftState done [21:58:58]opened in 1718843069 [21:58:58]opened+sec_in_day 1718929469 [21:58:58]quantity*price = 500000 [21:58:58]sum+1 = 500001 [21:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.97 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 20.06.2024 21:58 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34471 ФПД: 135154163527938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T215859&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34471&fm=135154163527938&tin=02508201610067®Number=0000000000092786&sum=500000 0 [21:58:59]StoreToDocumentArchive [21:58:59]shift 325 fd 34471 [21:58:59]save to /storage/0325/doc_00034471 [21:58:59]save last doc name /storage/0325/doc_00034471 to /storage/kkm_last_doc_name [21:58:59]save OK [21:58:59]Clear old archive folders... [21:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:58:59]tlvbuf is 00229650 [21:58:59]SAM_PROTO_ClearQueue [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 09 00 00 [21:58:59]Write to MH i2c: E2 08 00 B0 00 80 09 00 00 00 00 00 00 22 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_ClearQueue done [21:58:59]KKMCreateOFDPacket [21:58:59]OFDProtocolAddRootSTLVToBuf [21:58:59]FM_MakeSignedData [21:58:59]FM_MakeSignedData [21:58:59]SAM_PROTO_SignData [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 01 02 [21:58:59]Write to MH i2c: E2 08 00 B1 00 80 0D 01 02 00 00 00 00 2A [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=255 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:58:59]Write to MH i2c: E2 02 01 B2 00 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 16 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]OFD Sender: No OFD packet to send [21:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 03 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [21:59:00]RAPDU: 90 00 [21:59:00]wFMCommunicate OK [21:59:00]wFMCommunicate request_size=58 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 86 00 00 35 04 06 00 7A EC 07 E8 31 02 [21:59:00]Write to MH i2c: E2 3D 00 B3 00 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 86 00 00 35 04 06 00 7A EC 07 E8 31 02 00 00 DA [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 03 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [21:59:00]RAPDU: 90 00 [21:59:00]wFMCommunicate OK [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 0D 03 02 [21:59:00]Write to MH i2c: E2 08 00 B4 00 80 0D 03 02 00 00 00 00 2F [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0B 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0B 00 B4 00 00 A6 7A BD 68 5E 29 90 10 90 00 9C [21:59:00]RAPDU: A6 7A BD 68 5E 29 90 10 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_SignData done [21:59:00]FM_MakeSignedData done [21:59:00]CreateOFDProtocolMessage [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 11 00 00 [21:59:00]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 84 [21:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:59:00]wFMCommunicate OK [21:59:00]CreateOFDProtocolMessage done [21:59:00]OFDSenderStorePacket 34471 [21:59:00]StoreOFDPacket docnum=34471 [21:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 97 67 37 01 86 53 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 86 00 00 35 04 06 00 7A EC 07 E8 31 02 A6 7A BD 68 5E 29 90 10 [21:59:00]CheckFolder [21:59:00]dirname=/storage/ofd_packets [21:59:00]CheckFolder done [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00034471 [21:59:00]NVStorageSaveData ofd_packets/00034471 [21:59:00]File name is /storage/ofd_packets/00034471 [21:59:00]Write 349 bytes [21:59:00]NVStorageSaveData done [21:59:00]OFDSenderStorePacket done [21:59:00]KKMCreateOFDPacket done [21:59:00]NVStorageSaveData kkm_last_timestamp [21:59:00]File name is /storage/kkm_last_timestamp [21:59:00]Write 4 bytes [21:59:00]NVStorageSaveData done [21:59:00]ExternCall_PrintAddStr [21:59:00]wPrintStart [21:59:00]Write to MH i2c: 01 00 00 B6 00 B6 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [21:59:00]RasterBufferAndPrint [21:59:00]line Счет N : (3)184240 [21:59:00]line ИНН: 02508201610067 [21:59:00]line Контрольно-Кассовый Чек [21:59:00]line ПРОДАЖА [21:59:00]line Товар: 9780225379418 [21:59:00]line Подарочная топливная карта 5000с [21:59:00]line 1.000 * 5000.00 [21:59:00]line = 5000.00 [21:59:00]line НДС 12% НСП 1% [21:59:00]line > о реализуемом товаре [21:59:00]line ИТОГО: 5000.00 [21:59:00]line НСП 1% : 44.25 [21:59:00]line НДС 12% : 530.97 [21:59:00]line Наличными: 5000.00 [21:59:00]line Безнал.: 0.00 [21:59:00]line Место: АЗС № 120 "Партнер Нефть" [21:59:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:59:00]line СНО: Общий режим [21:59:00]line Чек 81 20.06.2024 21:58 [21:59:00]line Смена: 325 ФФД: 1.0 [21:59:00]line ЗНМ: 0300000172 [21:59:00]line РНМ: 0000000000092786 [21:59:00]line Версия ККМ: 001 [21:59:00]line ФМ: 0000000000875095 [21:59:00]line ФД: 34471 [21:59:00]line ФПД: 135154163527938 [21:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T215859&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34471&fm=135154163527938&tin=02508201610067®Number=0000000000092786&sum=500000 [21:59:00]line 0 [21:59:00]OFD Sender: Processing packet 34471 [packets to send 8, broken 7] [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00034471 [21:59:00]OFD Sender: To server: pG, [21:59:00]CommunicateWithHost lk.salyk.kg:30040 [21:59:00]ConnectInit lk.salyk.kg [21:59:00]written 0, free lines is 4095 [21:59:00]Connected sock=10 [21:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 97 67 37 01 86 53 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 23 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 86 00 00 35 04 06 00 7A EC 07 E8 31 02 A6 7A BD 68 5E 29 90 10 [21:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7B 9A 47 00 8B 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 86 00 00 F4 03 04 00 EB 4C 74 66 B6 04 01 00 00 C6 34 63 A1 ED 29 D3 FE [21:59:00]CommunicateWithHost err = 0 [21:59:00]CheckOFDResponse [21:59:00]1017 (14) - 77093643461234 [21:59:00]1041 (16) - 0000000000875095 [21:59:00]1040 (4) - 34471 [21:59:00]1012 (4) - 20.06.2024 15:38 [21:59:00]1206 (1) - 0 [21:59:00]OFD Sender: Remove packet 34471 [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00034471 [21:59:00]NVStorageDeleteData [21:59:01]Write to MH i2c: 01 00 00 DF 00 DF [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 07 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 F0 0C E2 [21:59:01]RasterBufferAndPrint [21:59:01]line [21:59:01]line [21:59:01]line [21:59:01]line [21:59:01]line [21:59:01]written 0, free lines is 3318 [21:59:01]MH_Cut [21:59:01]Write to MH i2c: D1 01 00 E6 00 01 B8 [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: D1 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: D1 01 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: D1 01 00 E6 00 00 B7 [21:59:01]Write to MH i2c: 01 00 00 E7 00 E7 [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]OFD Sender: No OFD packet to send [21:59:01]*** Cut start [21:59:01]*** Partial cut [21:59:01]*** CUTSNS_PIN = 1 [21:59:01]*** CUTSNS_PIN = 0 [21:59:01]*** Brake cut motor [21:59:02]Read from MH i2c: 01 [21:59:02]MH_I2C_Read... [21:59:02]*** Stop cut motor [21:59:02]*** Cut end [21:59:02]Read from MH i2c: 01 07 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 FF 0F FC [21:59:02]process_action close_receipt done [21:59:02]requested_data is exist [21:59:02]produce_requested_data [21:59:02]requested_item fm.sn is exist - process it [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 11 00 00 [21:59:02]Write to MH i2c: E2 08 00 E8 00 80 11 00 00 00 00 00 00 62 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 17 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 17 00 E8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B7 [21:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:59:02]wFMCommunicate OK [21:59:02]requested_item fd.num is exist - process it [21:59:02]SAM_PROTO_GetFieldsCounters [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 13 00 00 [21:59:02]Write to MH i2c: E2 08 00 E9 00 80 13 00 00 00 00 00 00 65 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 62 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 62 00 E9 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A7 86 00 00 0E 04 04 00 45 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 F5 [21: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A7 86 00 00 0E 04 04 00 45 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 [21:59:02]wFMCommunicate OK [21:59:02]SAM_PROTO_GetFieldsCounters done [21:59:02]requested_item shift.num is exist - process it [21:59:02]requested_item shift.opened is exist - process it [21:59:02]req_shift_opened [21:59:02]FM_GetShiftState [21:59:02]SAM_PROTO_GetShiftState [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 13 01 00 [21:59:02]Write to MH i2c: E2 08 00 EA 00 80 13 01 00 00 00 00 00 67 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 EA 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 7F [21:59:02]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [21:59:02]wFMCommunicate OK [21:59:02]SAM_PROTO_GetShiftState done [21:59:02]FM_GetShiftState done [21:59:02]req_shift_opened done [21:59:02]requested_item shift.open_date is exist - process it [21:59:02]req_shift_open_date [21:59:02]req_shift_open_date done [21:59:02]produce_requested_data done [21:59:02]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34471,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [21:59:02]process_action_free close_receipt [21:59:02]json_value_free [21:59:02]json_value_free done [21:59:02]process_json_proto returns [21:59:02]Send response to host [21:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34471,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [21:59:02]free response buf [21:59:02]execute_script done [21:59:02]execute_script returns [21:59:02]free content buf [21:59:02]Sock 9.Close socket [21:59:02]Sock 9.Thread stoped [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:31]ConnectInit Can't connect to host [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]accept exits with 7 [22:00:16]New connection [22:00:16]New thread 3066555748 created [22:00:16]Thread 3066699108 joined [22:00:16]Waiting for new connection... [22:00:16] Sock 7.Parse request [22:00:16]Sock 7.Check first char [22:00:16]Sock 7.First char is OK [22:00:16]request: POST /json_proto HTTP/1.0 [22:00:16]Method: POST [22:00:16]URL: /json_proto [22:00:16]Method is POST - this is cgi request [22:00:16]url: /json_proto [22:00:16]query_string will be loaded in cgi processing [22:00:16]execute_cgi json_proto POST (null) [22:00:16]execute_cgi path=json_proto method=POST [22:00:16]POST find Content-Length [22:00:16]Host: 172.17.38.134:8080 [22:00:16]Content-Length: 614 [22:00:16]Content-Type: application/json [22:00:16] [22:00:16]POST finish read [22:00:16]Found Content-Length = 614 [22:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184241", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:16]execute_script... [22:00:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184241", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:16]POST & json_proto [22:00:16]process_json_proto [22:00:16]json parsed OK: [22:00:16]protocol is kg_v1.0 [22:00:16]action value=close_receipt [22:00:16]process_action close_receipt [22:00:16]cmd_close_receipt [22:00:16]MH_GetDate [22:00:16]Write to MH i2c: F0 00 00 EB 00 DA [22:00:16]Write i2c OK [22:00:16]MH_I2C_Read... [22:00:16]Read from MH i2c: F0 [22:00:16]MH_I2C_Read... [22:00:16]Read from MH i2c: F0 09 00 [22:00:16]MH_I2C_Read... [22:00:16]Read from MH i2c: F0 09 00 EB 00 00 71 A6 74 66 13 9C 7C 64 63 [22:00:16]GetLastDocTimeStamp 1718920739 [22:00:16]current date 1718920817 [22:00:16]FM_GetShiftState [22:00:16]SAM_PROTO_GetShiftState [22:00:16]wFMCommunicate request_size=4 [22:00:16]MH_SAM_APDU [22:00:16]CAPDU: 80 13 01 00 [22:00:16]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [22:00:16]Write i2c OK [22:00:16]MH_I2C_Read... [22:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:16]Read from MH i2c: E2 [22:00:16]MH_I2C_Read... [22:00:16]Read from MH i2c: E2 0E 00 [22:00:16]MH_I2C_Read... [22:00:16]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 81 [22:00:16]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:00:16]wFMCommunicate OK [22:00:16]SAM_PROTO_GetShiftState done [22:00:16]FM_GetShiftState done [22:00:16]opened in 1718843069 [22:00:16]opened+sec_in_day 1718929469 [22:00:16]quantity*price = 21000 [22:00:16]sum+1 = 21001 [22:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 20.06.2024 22:00 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34472 ФПД: 209916343159951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220017&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34472&fm=209916343159951&tin=02508201610067®Number=0000000000092786&sum=21000 0 [22:00:17]StoreToDocumentArchive [22:00:17]shift 325 fd 34472 [22:00:17]save to /storage/0325/doc_00034472 [22:00:17]save last doc name /storage/0325/doc_00034472 to /storage/kkm_last_doc_name [22:00:17]save OK [22:00:17]Clear old archive folders... [22:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:00:17]tlvbuf is 00202EC0 [22:00:17]SAM_PROTO_ClearQueue [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 09 00 00 [22:00:17]Write to MH i2c: E2 08 00 F9 00 80 09 00 00 00 00 00 00 6B [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]SAM_PROTO_ClearQueue done [22:00:17]KKMCreateOFDPacket [22:00:17]OFDProtocolAddRootSTLVToBuf [22:00:17]FM_MakeSignedData [22:00:17]FM_MakeSignedData [22:00:17]SAM_PROTO_SignData [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 01 02 [22:00:17]Write to MH i2c: E2 08 00 FA 00 80 0D 01 02 00 00 00 00 73 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=255 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 71 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [22:00:17]Write to MH i2c: E2 02 01 FB 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 71 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 E0 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=25 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 02 02 14 39 35 10 04 04 00 A8 86 00 00 35 04 06 00 BE EA F5 11 0C 8F [22:00:17]Write to MH i2c: E2 1C 00 FC 00 80 0D 02 02 14 00 39 35 10 04 04 00 A8 86 00 00 35 04 06 00 BE EA F5 11 0C 8F 00 00 DA [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:17]Read from MH i2c: E2 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 [22:00:17]MH_I2C_Read... [22:00:17]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [22:00:17]RAPDU: 90 00 [22:00:17]wFMCommunicate OK [22:00:17]wFMCommunicate request_size=4 [22:00:17]MH_SAM_APDU [22:00:17]CAPDU: 80 0D 03 02 [22:00:17]Write to MH i2c: E2 08 00 FD 00 80 0D 03 02 00 00 00 00 78 [22:00:17]Write i2c OK [22:00:17]MH_I2C_Read... [22:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:18]Read from MH i2c: E2 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 0B 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 0B 00 FD 00 00 CF 7C 70 B5 14 2D 66 3E 90 00 CE [22:00:18]RAPDU: CF 7C 70 B5 14 2D 66 3E 90 00 [22:00:18]wFMCommunicate OK [22:00:18]SAM_PROTO_SignData done [22:00:18]FM_MakeSignedData done [22:00:18]CreateOFDProtocolMessage [22:00:18]wFMCommunicate request_size=4 [22:00:18]MH_SAM_APDU [22:00:18]CAPDU: 80 11 00 00 [22:00:18]Write to MH i2c: E2 08 00 FE 00 80 11 00 00 00 00 00 00 78 [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:18]Read from MH i2c: E2 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 17 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: E2 17 00 FE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CD [22:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:00:18]wFMCommunicate OK [22:00:18]CreateOFDProtocolMessage done [22:00:18]OFDSenderStorePacket 34472 [22:00:18]StoreOFDPacket docnum=34472 [22:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 8B 95 16 01 AA E2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 71 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 86 00 00 35 04 06 00 BE EA F5 11 0C 8F CF 7C 70 B5 14 2D 66 3E [22:00:18]CheckFolder [22:00:18]dirname=/storage/ofd_packets [22:00:18]CheckFolder done [22:00:18]ProducePacketName [22:00:18]name=ofd_packets/00034472 [22:00:18]NVStorageSaveData ofd_packets/00034472 [22:00:18]File name is /storage/ofd_packets/00034472 [22:00:18]Write 316 bytes [22:00:18]NVStorageSaveData done [22:00:18]OFDSenderStorePacket done [22:00:18]KKMCreateOFDPacket done [22:00:18]NVStorageSaveData kkm_last_timestamp [22:00:18]File name is /storage/kkm_last_timestamp [22:00:18]Write 4 bytes [22:00:18]NVStorageSaveData done [22:00:18]ExternCall_PrintAddStr [22:00:18]wPrintStart [22:00:18]Write to MH i2c: 01 00 00 FF 00 FF [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [22:00:18]RasterBufferAndPrint [22:00:18]line Счет N : (3)184241 [22:00:18]line ИНН: 02508201610067 [22:00:18]line Контрольно-Кассовый Чек [22:00:18]line ПРОДАЖА [22:00:18]line Товар: 4870001570095 [22:00:18]line Напиток Pepsi 2л [22:00:18]line 1.000 * 210.00 [22:00:18]line = 210.00 [22:00:18]line НДС 12% НСП 1% [22:00:18]line > о реализуемом товаре [22:00:18]line ИТОГО: 210.00 [22:00:18]line НСП 1% : 1.86 [22:00:18]line НДС 12% : 22.30 [22:00:18]line Наличными: 210.00 [22:00:18]line Безнал.: 0.00 [22:00:18]line Место: АЗС № 120 "Партнер Нефть" [22:00:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:00:18]line СНО: Общий режим [22:00:18]line Чек 82 20.06.2024 22:00 [22:00:18]line Смена: 325 ФФД: 1.0 [22:00:18]line ЗНМ: 0300000172 [22:00:18]line РНМ: 0000000000092786 [22:00:18]line Версия ККМ: 001 [22:00:18]line ФМ: 0000000000875095 [22:00:18]line ФД: 34472 [22:00:18]line ФПД: 209916343159951 [22:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220017&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34472&fm=209916343159951&tin=02508201610067®Number=0000000000092786&sum=21000 [22:00:18]line 0 [22:00:18]OFD Sender: Processing packet 34472 [packets to send 8, broken 7] [22:00:18]ProducePacketName [22:00:18]name=ofd_packets/00034472 [22:00:18]OFD Sender: To server: pG, [22:00:18]CommunicateWithHost lk.salyk.kg:30040 [22:00:18]ConnectInit lk.salyk.kg [22:00:18]written 0, free lines is 4095 [22:00:18]Connected sock=10 [22:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 8B 95 16 01 AA E2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 71 A6 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 86 00 00 35 04 06 00 BE EA F5 11 0C 8F CF 7C 70 B5 14 2D 66 3E [22:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 4F 0E 47 00 11 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 86 00 00 F4 03 04 00 39 4D 74 66 B6 04 01 00 00 E5 BC 70 35 79 0E B8 22 [22:00:18]CommunicateWithHost err = 0 [22:00:18]CheckOFDResponse [22:00:18]1017 (14) - 77093643461234 [22:00:18]1041 (16) - 0000000000875095 [22:00:18]1040 (4) - 34472 [22:00:18]1012 (4) - 20.06.2024 15:39 [22:00:18]1206 (1) - 0 [22:00:18]OFD Sender: Remove packet 34472 [22:00:18]ProducePacketName [22:00:18]name=ofd_packets/00034472 [22:00:18]NVStorageDeleteData [22:00:18]Write to MH i2c: 01 00 00 27 01 28 [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: 01 07 00 27 01 00 00 00 00 00 12 0D 4E [22:00:18]RasterBufferAndPrint [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]line [22:00:18]written 0, free lines is 3353 [22:00:18]MH_Cut [22:00:18]Write to MH i2c: D1 01 00 2E 01 01 01 [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: D1 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: D1 01 00 [22:00:18]MH_I2C_Read... [22:00:18]Read from MH i2c: D1 01 00 2E 01 00 00 [22:00:18]Write to MH i2c: 01 00 00 2F 01 30 [22:00:18]Write i2c OK [22:00:18]MH_I2C_Read... [22:00:19]OFD Sender: No OFD packet to send [22:00:19]*** Cut start [22:00:19]*** Partial cut [22:00:19]*** CUTSNS_PIN = 1 [22:00:19]*** CUTSNS_PIN = 0 [22:00:19]*** Brake cut motor [22:00:20]Read from MH i2c: 01 [22:00:20]MH_I2C_Read... [22:00:20]*** Stop cut motor [22:00:20]Read from MH i2c: *** Cut end [22:00:20]01 07 00 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 FF 0F 45 [22:00:20]process_action close_receipt done [22:00:20]requested_data is exist [22:00:20]produce_requested_data [22:00:20]requested_item fm.sn is exist - process it [22:00:20]wFMCommunicate request_size=4 [22:00:20]MH_SAM_APDU [22:00:20]CAPDU: 80 11 00 00 [22:00:20]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [22:00:20]Write i2c OK [22:00:20]MH_I2C_Read... [22:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:20]Read from MH i2c: E2 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 17 00 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 00 [22:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:00:20]wFMCommunicate OK [22:00:20]requested_item fd.num is exist - process it [22:00:20]SAM_PROTO_GetFieldsCounters [22:00:20]wFMCommunicate request_size=4 [22:00:20]MH_SAM_APDU [22:00:20]CAPDU: 80 13 00 00 [22:00:20]Write to MH i2c: E2 08 00 31 01 80 13 00 00 00 00 00 00 AE [22:00:20]Write i2c OK [22:00:20]MH_I2C_Read... [22:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:20]Read from MH i2c: E2 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 62 00 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 62 00 31 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A8 86 00 00 0E 04 04 00 45 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 42 [22:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A8 86 00 00 0E 04 04 00 45 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 [22:00:20]wFMCommunicate OK [22:00:20]SAM_PROTO_GetFieldsCounters done [22:00:20]requested_item shift.num is exist - process it [22:00:20]requested_item shift.opened is exist - process it [22:00:20]req_shift_opened [22:00:20]FM_GetShiftState [22:00:20]SAM_PROTO_GetShiftState [22:00:20]wFMCommunicate request_size=4 [22:00:20]MH_SAM_APDU [22:00:20]CAPDU: 80 13 01 00 [22:00:20]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [22:00:20]Write i2c OK [22:00:20]MH_I2C_Read... [22:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:20]Read from MH i2c: E2 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 0E 00 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 C8 [22:00:20]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:00:20]wFMCommunicate OK [22:00:20]SAM_PROTO_GetShiftState done [22:00:20]FM_GetShiftState done [22:00:20]req_shift_opened done [22:00:20]requested_item shift.open_date is exist - process it [22:00:20]req_shift_open_date [22:00:20]req_shift_open_date done [22:00:20]produce_requested_data done [22:00:20]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34472,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [22:00:20]process_action_free close_receipt [22:00:20]json_value_free [22:00:20]json_value_free done [22:00:20]process_json_proto returns [22:00:20]Send response to host [22:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34472,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [22:00:20]free response buf [22:00:20]execute_script done [22:00:20]execute_script returns [22:00:20]free content buf [22:00:20]Sock 7.Close socket [22:00:20]Sock 7.Thread stoped [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:56]accept exits with 9 [22:09:56]New connection [22:09:56]New thread 3066699108 created [22:09:56]Thread 3066555748 joined [22:09:56]Waiting for new connection... [22:09:56] Sock 9.Parse request [22:09:56]Sock 9.Check first char [22:09:56]Sock 9.First char is OK [22:09:56]request: POST /json_proto HTTP/1.0 [22:09:56]Method: POST [22:09:56]URL: /json_proto [22:09:56]Method is POST - this is cgi request [22:09:56]url: /json_proto [22:09:56]query_string will be loaded in cgi processing [22:09:56]execute_cgi json_proto POST (null) [22:09:56]execute_cgi path=json_proto method=POST [22:09:56]POST find Content-Length [22:09:56]Host: 172.17.38.134:8080 [22:09:56]Content-Length: 936 [22:09:56]Content-Type: application/json [22:09:56] [22:09:56]POST finish read [22:09:56]Found Content-Length = 936 [22:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184242", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 303.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:56]execute_script... [22:09: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)184242", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 303.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:56]POST & json_proto [22:09:56]process_json_proto [22:09:56]json parsed OK: [22:09:56]protocol is kg_v1.0 [22:09:56]action value=close_receipt [22:09:56]process_action close_receipt [22:09:56]cmd_close_receipt [22:09:56]MH_GetDate [22:09:56]Write to MH i2c: F0 00 00 33 01 23 [22:09:56]Write i2c OK [22:09:56]MH_I2C_Read... [22:09:56]Read from MH i2c: F0 [22:09:56]MH_I2C_Read... [22:09:56]Read from MH i2c: F0 09 00 [22:09:56]MH_I2C_Read... [22:09:56]Read from MH i2c: F0 09 00 33 01 00 B5 A8 74 66 13 9C 7C 64 F2 [22:09:56]GetLastDocTimeStamp 1718920817 [22:09:56]current date 1718921397 [22:09:56]FM_GetShiftState [22:09:56]SAM_PROTO_GetShiftState [22:09:56]wFMCommunicate request_size=4 [22:09:56]MH_SAM_APDU [22:09:56]CAPDU: 80 13 01 00 [22:09:56]Write to MH i2c: E2 08 00 34 01 80 13 01 00 00 00 00 00 B2 [22:09:56]Write i2c OK [22:09:56]MH_I2C_Read... [22:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:56]Read from MH i2c: E2 [22:09:56]MH_I2C_Read... [22:09:56]Read from MH i2c: E2 0E 00 [22:09:56]MH_I2C_Read... [22:09:56]Read from MH i2c: E2 0E 00 34 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 CA [22:09:56]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:09:56]wFMCommunicate OK [22:09:56]SAM_PROTO_GetShiftState done [22:09:56]FM_GetShiftState done [22:09:56]opened in 1718843069 [22:09:56]opened+sec_in_day 1718929469 [22:09:56]quantity*price = 13800 [22:09:56]sum+1 = 13801 [22:09:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4680988568943 Жид/ст ПН апельсин летняя 4,5л 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 303.00 НСП 1% : 2.68 НДС 12% : 32.17 Наличными: 303.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 83 20.06.2024 22:09 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34473 ФПД: 196994916207068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220957&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34473&fm=196994916207068&tin=02508201610067®Number=0000000000092786&sum=30300 0 [22:09:57]StoreToDocumentArchive [22:09:57]shift 325 fd 34473 [22:09:57]save to /storage/0325/doc_00034473 [22:09:57]save last doc name /storage/0325/doc_00034473 to /storage/kkm_last_doc_name [22:09:57]save OK [22:09:57]Clear old archive folders... [22:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=398 [22:09:57]tlvbuf is 00223E70 [22:09:57]SAM_PROTO_ClearQueue [22:09:57]wFMCommunicate request_size=4 [22:09:57]MH_SAM_APDU [22:09:57]CAPDU: 80 09 00 00 [22:09:57]Write to MH i2c: E2 08 00 41 01 80 09 00 00 00 00 00 00 B4 [22:09:57]Write i2c OK [22:09:57]MH_I2C_Read... [22:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:57]Read from MH i2c: E2 [22:09:57]MH_I2C_Read... [22:09:57]Read from MH i2c: E2 03 00 [22:09:57]MH_I2C_Read... [22:09:57]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [22:09:57]RAPDU: 90 00 [22:09:57]wFMCommunicate OK [22:09:57]SAM_PROTO_ClearQueue done [22:09:57]KKMCreateOFDPacket [22:09:57]OFDProtocolAddRootSTLVToBuf [22:09:57]FM_MakeSignedData [22:09:57]FM_MakeSignedData [22:09:57]SAM_PROTO_SignData [22:09:57]wFMCommunicate request_size=4 [22:09:57]MH_SAM_APDU [22:09:57]CAPDU: 80 0D 01 02 [22:09:57]Write to MH i2c: E2 08 00 42 01 80 0D 01 02 00 00 00 00 BC [22:09:57]Write i2c OK [22:09:57]MH_I2C_Read... [22:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:57]Read from MH i2c: E2 [22:09:57]MH_I2C_Read... [22:09:57]Read from MH i2c: E2 03 00 [22:09:57]MH_I2C_Read... [22:09:57]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [22:09:57]RAPDU: 90 00 [22:09:57]wFMCommunicate OK [22:09:57]wFMCommunicate request_size=255 [22:09:57]MH_SAM_APDU [22:09:57]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 [22:09:57]Write to MH i2c: E2 02 01 43 01 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 00 00 [22:09:57]Write i2c OK [22:09:57]MH_I2C_Read... [22:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:58]Read from MH i2c: E2 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 03 00 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [22:09:58]RAPDU: 90 00 [22:09:58]wFMCommunicate OK [22:09:58]wFMCommunicate request_size=157 [22:09:58]MH_SAM_APDU [22:09:58]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 B5 A8 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 86 00 00 35 04 06 00 B3 2A 74 00 C9 DC [22:09:58]Write to MH i2c: E2 A0 00 44 01 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 B5 A8 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 86 00 00 35 04 06 00 B3 2A 74 00 C9 DC 00 00 92 [22:09:58]Write i2c OK [22:09:58]MH_I2C_Read... [22:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:58]Read from MH i2c: E2 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 03 00 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [22:09:58]RAPDU: 90 00 [22:09:58]wFMCommunicate OK [22:09:58]wFMCommunicate request_size=4 [22:09:58]MH_SAM_APDU [22:09:58]CAPDU: 80 0D 03 02 [22:09:58]Write to MH i2c: E2 08 00 45 01 80 0D 03 02 00 00 00 00 C1 [22:09:58]Write i2c OK [22:09:58]MH_I2C_Read... [22:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:58]Read from MH i2c: E2 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 0B 00 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 0B 00 45 01 00 FD 0C EF 6F D0 DC 12 2A 90 00 11 [22:09:58]RAPDU: FD 0C EF 6F D0 DC 12 2A 90 00 [22:09:58]wFMCommunicate OK [22:09:58]SAM_PROTO_SignData done [22:09:58]FM_MakeSignedData done [22:09:58]CreateOFDProtocolMessage [22:09:58]wFMCommunicate request_size=4 [22:09:58]MH_SAM_APDU [22:09:58]CAPDU: 80 11 00 00 [22:09:58]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [22:09:58]Write i2c OK [22:09:58]MH_I2C_Read... [22:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:58]Read from MH i2c: E2 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 17 00 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 16 [22:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:09:58]wFMCommunicate OK [22:09:58]CreateOFDProtocolMessage done [22:09:58]OFDSenderStorePacket 34473 [22:09:58]StoreOFDPacket docnum=34473 [22:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A2 01 00 00 D0 0A 9A 01 4C 1C 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 B5 A8 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 86 00 00 35 04 06 00 B3 2A 74 00 C9 DC FD 0C EF 6F D0 DC 12 2A [22:09:58]CheckFolder [22:09:58]dirname=/storage/ofd_packets [22:09:58]CheckFolder done [22:09:58]ProducePacketName [22:09:58]name=ofd_packets/00034473 [22:09:58]NVStorageSaveData ofd_packets/00034473 [22:09:58]File name is /storage/ofd_packets/00034473 [22:09:58]Write 448 bytes [22:09:58]NVStorageSaveData done [22:09:58]OFDSenderStorePacket done [22:09:58]KKMCreateOFDPacket done [22:09:58]NVStorageSaveData kkm_last_timestamp [22:09:58]File name is /storage/kkm_last_timestamp [22:09:58]Write 4 bytes [22:09:58]NVStorageSaveData done [22:09:58]ExternCall_PrintAddStr [22:09:58]wPrintStart [22:09:58]Write to MH i2c: 01 00 00 47 01 48 [22:09:58]Write i2c OK [22:09:58]MH_I2C_Read... [22:09:58]OFD Sender: Processing packet 34473 [packets to send 8, broken 7] [22:09:58]ProducePacketName [22:09:58]name=ofd_packets/00034473 [22:09:58]OFD Sender: To server: pG, [22:09:58]CommunicateWithHost lk.salyk.kg:30040 [22:09:58]ConnectInit lk.salyk.kg [22:09:58]Read from MH i2c: 01 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: 01 07 00 [22:09:58]MH_I2C_Read... [22:09:58]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [22:09:58]RasterBufferAndPrint [22:09:58]line Счет N : (3)184242 [22:09:58]line ИНН: 02508201610067 [22:09:58]line Контрольно-Кассовый Чек [22:09:58]line ПРОДАЖА [22:09:58]line Товар: 4640030091645 [22:09:58]line Сигареты ESSE Exchange M [22:09:58]line 1.000 * 138.00 [22:09:58]line = 138.00 [22:09:58]line НДС 12% НСП 1% [22:09:58]line > о реализуемом товаре [22:09:58]line Товар: 4680988568943 [22:09:58]line Жид/ст ПН апельсин летняя 4,5л [22:09:58]line 1.000 * 165.00 [22:09:58]line = 165.00 [22:09:58]line НДС 12% НСП 1% [22:09:58]line > о реализуемом товаре [22:09:58]line ИТОГО: 303.00 [22:09:58]line НСП 1% : 2.68 [22:09:58]line НДС 12% : 32.17 [22:09:58]line Наличными: 303.00 [22:09:58]line Безнал.: 0.00 [22:09:58]line Место: АЗС № 120 "Партнер Нефть" [22:09:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:09:58]line СНО: Общий режим [22:09:58]line Чек 83 20.06.2024 22:09 [22:09:58]line Смена: 325 ФФД: 1.0 [22:09:58]line ЗНМ: 0300000172 [22:09:58]line РНМ: 0000000000092786 [22:09:58]line Версия ККМ: 001 [22:09:58]line ФМ: 0000000000875095 [22:09:58]line ФД: 34473 [22:09:58]line ФПД: 196994916207068 [22:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220957&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34473&fm=196994916207068&tin=02508201610067®Number=0000000000092786&sum=30300 [22:09:58]line 0 [22:09:58]written 0, free lines is 4095 [22:09:58]Connected sock=10 [22:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A2 01 00 00 D0 0A 9A 01 4C 1C 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0C 00 00 00 00 07 04 06 00 5C 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 B5 A8 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 86 00 00 35 04 06 00 B3 2A 74 00 C9 DC FD 0C EF 6F D0 DC 12 2A [22:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7F 23 47 00 4F 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 86 00 00 F4 03 04 00 7E 4F 74 66 B6 04 01 00 00 A4 BD D9 B9 98 2B CA 2B [22:09:59]CommunicateWithHost err = 0 [22:09:59]CheckOFDResponse [22:09:59]1017 (14) - 77093643461234 [22:09:59]1041 (16) - 0000000000875095 [22:09:59]1040 (4) - 34473 [22:09:59]1012 (4) - 20.06.2024 15:49 [22:09:59]1206 (1) - 0 [22:09:59]OFD Sender: Remove packet 34473 [22:09:59]ProducePacketName [22:09:59]name=ofd_packets/00034473 [22:09:59]NVStorageDeleteData [22:09:59]Write to MH i2c: 01 00 00 76 01 77 [22:09:59]Write i2c OK [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: 01 [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: 01 07 00 [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 AA 0C 34 [22:09:59]RasterBufferAndPrint [22:09:59]line [22:09:59]line [22:09:59]line [22:09:59]line [22:09:59]line [22:09:59]written 0, free lines is 3247 [22:09:59]MH_Cut [22:09:59]Write to MH i2c: D1 01 00 7D 01 01 50 [22:09:59]Write i2c OK [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: D1 [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: D1 01 00 [22:09:59]MH_I2C_Read... [22:09:59]Read from MH i2c: D1 01 00 7D 01 00 4F [22:09:59]Write to MH i2c: 01 00 00 7E 01 7F [22:09:59]Write i2c OK [22:09:59]MH_I2C_Read... [22:09:59]OFD Sender: No OFD packet to send [22:10:00]*** Cut start [22:10:00]*** Partial cut [22:10:00]*** CUTSNS_PIN = 1 [22:10:00]*** CUTSNS_PIN = 0 [22:10:00]*** Brake cut motor [22:10:00]Read from MH i2c: 01 [22:10:00]MH_I2C_Read... [22:10:00]*** Stop cut motor [22:10:00]*** Cut end [22:10:00]Read from MH i2c: 01 07 00 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [22:10:00]process_action close_receipt done [22:10:00]requested_data is exist [22:10:00]produce_requested_data [22:10:00]requested_item fm.sn is exist - process it [22:10:00]wFMCommunicate request_size=4 [22:10:00]MH_SAM_APDU [22:10:00]CAPDU: 80 11 00 00 [22:10:00]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [22:10:00]Write i2c OK [22:10:00]MH_I2C_Read... [22:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:00]Read from MH i2c: E2 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 17 00 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4F [22:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:10:00]wFMCommunicate OK [22:10:00]requested_item fd.num is exist - process it [22:10:00]SAM_PROTO_GetFieldsCounters [22:10:00]wFMCommunicate request_size=4 [22:10:00]MH_SAM_APDU [22:10:00]CAPDU: 80 13 00 00 [22:10:00]Write to MH i2c: E2 08 00 80 01 80 13 00 00 00 00 00 00 FD [22:10:00]Write i2c OK [22:10:00]MH_I2C_Read... [22:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:00]Read from MH i2c: E2 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 62 00 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 62 00 80 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A9 86 00 00 0E 04 04 00 45 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 95 [22:10: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A9 86 00 00 0E 04 04 00 45 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 [22:10:00]wFMCommunicate OK [22:10:00]SAM_PROTO_GetFieldsCounters done [22:10:00]requested_item shift.num is exist - process it [22:10:00]requested_item shift.opened is exist - process it [22:10:00]req_shift_opened [22:10:00]FM_GetShiftState [22:10:00]SAM_PROTO_GetShiftState [22:10:00]wFMCommunicate request_size=4 [22:10:00]MH_SAM_APDU [22:10:00]CAPDU: 80 13 01 00 [22:10:00]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [22:10:00]Write i2c OK [22:10:00]MH_I2C_Read... [22:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:00]Read from MH i2c: E2 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 0E 00 [22:10:00]MH_I2C_Read... [22:10:00]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 17 [22:10:00]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:10:00]wFMCommunicate OK [22:10:00]SAM_PROTO_GetShiftState done [22:10:00]FM_GetShiftState done [22:10:00]req_shift_opened done [22:10:00]requested_item shift.open_date is exist - process it [22:10:00]req_shift_open_date [22:10:00]req_shift_open_date done [22:10:00]produce_requested_data done [22:10:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34473,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [22:10:00]process_action_free close_receipt [22:10:00]json_value_free [22:10:00]json_value_free done [22:10:00]process_json_proto returns [22:10:00]Send response to host [22:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34473,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [22:10:00]free response buf [22:10:00]execute_script done [22:10:00]execute_script returns [22:10:00]free content buf [22:10:00]Sock 9.Close socket [22:10:00]Sock 9.Thread stoped [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:29]accept exits with 7 [22:23:29]New connection [22:23:29]New thread 3066555748 created [22:23:29]Thread 3066699108 joined [22:23:29]Waiting for new connection... [22:23:29] Sock 7.Parse request [22:23:29]Sock 7.Check first char [22:23:29]Sock 7.First char is OK [22:23:29]request: POST /json_proto HTTP/1.0 [22:23:29]Method: POST [22:23:29]URL: /json_proto [22:23:29]Method is POST - this is cgi request [22:23:29]url: /json_proto [22:23:29]query_string will be loaded in cgi processing [22:23:29]execute_cgi json_proto POST (null) [22:23:29]execute_cgi path=json_proto method=POST [22:23:29]POST find Content-Length [22:23:29]Host: 172.17.38.134:8080 [22:23:29]Content-Length: 622 [22:23:29]Content-Type: application/json [22:23:29] [22:23:29]POST finish read [22:23:29]Found Content-Length = 622 [22:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184243", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:29]execute_script... [22:23:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184243", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:29]POST & json_proto [22:23:29]process_json_proto [22:23:29]json parsed OK: [22:23:29]protocol is kg_v1.0 [22:23:29]action value=close_receipt [22:23:29]process_action close_receipt [22:23:29]cmd_close_receipt [22:23:29]MH_GetDate [22:23:29]Write to MH i2c: F0 00 00 82 01 72 [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: F0 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: F0 09 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: F0 09 00 82 01 00 E2 AB 74 66 13 9C 7C 64 71 [22:23:29]GetLastDocTimeStamp 1718921397 [22:23:29]current date 1718922210 [22:23:29]FM_GetShiftState [22:23:29]SAM_PROTO_GetShiftState [22:23:29]wFMCommunicate request_size=4 [22:23:29]MH_SAM_APDU [22:23:29]CAPDU: 80 13 01 00 [22:23:29]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [22:23:29]Write i2c OK [22:23:29]MH_I2C_Read... [22:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:29]Read from MH i2c: E2 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 0E 00 [22:23:29]MH_I2C_Read... [22:23:29]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 19 [22:23:29]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:23:29]wFMCommunicate OK [22:23:29]SAM_PROTO_GetShiftState done [22:23:29]FM_GetShiftState done [22:23:29]opened in 1718843069 [22:23:29]opened+sec_in_day 1718929469 [22:23:29]quantity*price = 13800 [22:23:29]sum+1 = 13801 [22:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 20.06.2024 22:23 Смена: 325 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34474 ФПД: 278800350133787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222330&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34474&fm=278800350133787&tin=02508201610067®Number=0000000000092786&sum=13800 0 [22:23:30]StoreToDocumentArchive [22:23:30]shift 325 fd 34474 [22:23:30]save to /storage/0325/doc_00034474 [22:23:30]save last doc name /storage/0325/doc_00034474 to /storage/kkm_last_doc_name [22:23:30]save OK [22:23:30]Clear old archive folders... [22:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:23:30]tlvbuf is 002250A0 [22:23:30]SAM_PROTO_ClearQueue [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 09 00 00 [22:23:30]Write to MH i2c: E2 08 00 90 01 80 09 00 00 00 00 00 00 03 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]SAM_PROTO_ClearQueue done [22:23:30]KKMCreateOFDPacket [22:23:30]OFDProtocolAddRootSTLVToBuf [22:23:30]FM_MakeSignedData [22:23:30]FM_MakeSignedData [22:23:30]SAM_PROTO_SignData [22:23:30]wFMCommunicate request_size=4 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 01 02 [22:23:30]Write to MH i2c: E2 08 00 91 01 80 0D 01 02 00 00 00 00 0B [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]wFMCommunicate request_size=255 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E2 AB 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [22:23:30]Write to MH i2c: E2 02 01 92 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E2 AB 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 50 [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:30]Read from MH i2c: E2 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 [22:23:30]MH_I2C_Read... [22:23:30]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [22:23:30]RAPDU: 90 00 [22:23:30]wFMCommunicate OK [22:23:30]wFMCommunicate request_size=33 [22:23:30]MH_SAM_APDU [22:23:30]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 86 00 00 35 04 06 00 FD 91 43 D5 3E 1B [22:23:30]Write to MH i2c: E2 24 00 93 01 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 86 00 00 35 04 06 00 FD 91 43 D5 3E 1B 00 00 CE [22:23:30]Write i2c OK [22:23:30]MH_I2C_Read... [22:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:31]Read from MH i2c: E2 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 03 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [22:23:31]RAPDU: 90 00 [22:23:31]wFMCommunicate OK [22:23:31]wFMCommunicate request_size=4 [22:23:31]MH_SAM_APDU [22:23:31]CAPDU: 80 0D 03 02 [22:23:31]Write to MH i2c: E2 08 00 94 01 80 0D 03 02 00 00 00 00 10 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:31]Read from MH i2c: E2 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0B 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0B 00 94 01 00 97 C8 BF C4 82 40 92 6F 90 00 B6 [22:23:31]RAPDU: 97 C8 BF C4 82 40 92 6F 90 00 [22:23:31]wFMCommunicate OK [22:23:31]SAM_PROTO_SignData done [22:23:31]FM_MakeSignedData done [22:23:31]CreateOFDProtocolMessage [22:23:31]wFMCommunicate request_size=4 [22:23:31]MH_SAM_APDU [22:23:31]CAPDU: 80 11 00 00 [22:23:31]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:31]Read from MH i2c: E2 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 17 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 65 [22:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:23:31]wFMCommunicate OK [22:23:31]CreateOFDProtocolMessage done [22:23:31]OFDSenderStorePacket 34474 [22:23:31]StoreOFDPacket docnum=34474 [22:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 52 66 1E 01 DB 4E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E2 AB 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 86 00 00 35 04 06 00 FD 91 43 D5 3E 1B 97 C8 BF C4 82 40 92 6F [22:23:31]CheckFolder [22:23:31]dirname=/storage/ofd_packets [22:23:31]CheckFolder done [22:23:31]ProducePacketName [22:23:31]name=ofd_packets/00034474 [22:23:31]NVStorageSaveData ofd_packets/00034474 [22:23:31]File name is /storage/ofd_packets/00034474 [22:23:31]Write 324 bytes [22:23:31]NVStorageSaveData done [22:23:31]OFDSenderStorePacket done [22:23:31]KKMCreateOFDPacket done [22:23:31]NVStorageSaveData kkm_last_timestamp [22:23:31]File name is /storage/kkm_last_timestamp [22:23:31]Write 4 bytes [22:23:31]NVStorageSaveData done [22:23:31]ExternCall_PrintAddStr [22:23:31]wPrintStart [22:23:31]Write to MH i2c: 01 00 00 96 01 97 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [22:23:31]RasterBufferAndPrint [22:23:31]line Счет N : (3)184243 [22:23:31]line ИНН: 02508201610067 [22:23:31]line Контрольно-Кассовый Чек [22:23:31]line ПРОДАЖА [22:23:31]line Товар: 4640030091645 [22:23:31]line Сигареты ESSE Exchange M [22:23:31]line 1.000 * 138.00 [22:23:31]line = 138.00 [22:23:31]line НДС 12% НСП 1% [22:23:31]line > о реализуемом товаре [22:23:31]line ИТОГО: 138.00 [22:23:31]line НСП 1% : 1.22 [22:23:31]line НДС 12% : 14.65 [22:23:31]line Наличными: 138.00 [22:23:31]line Безнал.: 0.00 [22:23:31]line Место: АЗС № 120 "Партнер Нефть" [22:23:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:23:31]line СНО: Общий режим [22:23:31]line Чек 84 20.06.2024 22:23 [22:23:31]line Смена: 325 ФФД: 1.0 [22:23:31]line ЗНМ: 0300000172 [22:23:31]line РНМ: 0000000000092786 [22:23:31]line Версия ККМ: 001 [22:23:31]line ФМ: 0000000000875095 [22:23:31]line ФД: 34474 [22:23:31]line ФПД: 278800350133787 [22:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222330&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34474&fm=278800350133787&tin=02508201610067®Number=0000000000092786&sum=13800 [22:23:31]line 0 [22:23:31]OFD Sender: Processing packet 34474 [packets to send 8, broken 7] [22:23:31]ProducePacketName [22:23:31]name=ofd_packets/00034474 [22:23:31]OFD Sender: To server: pG, [22:23:31]CommunicateWithHost lk.salyk.kg:30040 [22:23:31]ConnectInit lk.salyk.kg [22:23:31]written 0, free lines is 4095 [22:23:31]Connected sock=10 [22:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 52 66 1E 01 DB 4E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E2 AB 74 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 86 00 00 35 04 06 00 FD 91 43 D5 3E 1B 97 C8 BF C4 82 40 92 6F [22:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 2E E8 47 00 DF 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 35 30 39 35 10 04 04 00 AA 86 00 00 F4 03 04 00 AA 52 74 66 B6 04 01 00 00 B0 4A 3B A1 F3 73 72 14 [22:23:31]CommunicateWithHost err = 0 [22:23:31]CheckOFDResponse [22:23:31]1017 (14) - 77093643461234 [22:23:31]1041 (16) - 0000000000875095 [22:23:31]1040 (4) - 34474 [22:23:31]1012 (4) - 20.06.2024 16:02 [22:23:31]1206 (1) - 0 [22:23:31]OFD Sender: Remove packet 34474 [22:23:31]ProducePacketName [22:23:31]name=ofd_packets/00034474 [22:23:31]NVStorageDeleteData [22:23:31]Write to MH i2c: 01 00 00 BE 01 BF [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 12 0D E5 [22:23:31]RasterBufferAndPrint [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]line [22:23:31]written 0, free lines is 3353 [22:23:31]MH_Cut [22:23:31]Write to MH i2c: D1 01 00 C5 01 01 98 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 01 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: D1 01 00 C5 01 00 97 [22:23:31]Write to MH i2c: 01 00 00 C6 01 C7 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:32]OFD Sender: No OFD packet to send [22:23:32]*** Cut start [22:23:32]*** Partial cut [22:23:32]*** CUTSNS_PIN = 1 [22:23:32]*** CUTSNS_PIN = 0 [22:23:32]*** Brake cut motor [22:23:33]Read from MH i2c: 01 [22:23:33]MH_I2C_Read... [22:23:33]*** Stop cut motor [22:23:33]*** Cut end [22:23:33]Read from MH i2c: 01 07 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 FF 0F DC [22:23:33]process_action close_receipt done [22:23:33]requested_data is exist [22:23:33]produce_requested_data [22:23:33]requested_item fm.sn is exist - process it [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 11 00 00 [22:23:33]Write to MH i2c: E2 08 00 C7 01 80 11 00 00 00 00 00 00 42 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 C7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 97 [22:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:23:33]wFMCommunicate OK [22:23:33]requested_item fd.num is exist - process it [22:23:33]SAM_PROTO_GetFieldsCounters [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 13 00 00 [22:23:33]Write to MH i2c: E2 08 00 C8 01 80 13 00 00 00 00 00 00 45 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 C8 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AA 86 00 00 0E 04 04 00 45 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 E1 [22:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AA 86 00 00 0E 04 04 00 45 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 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetFieldsCounters done [22:23:33]requested_item shift.num is exist - process it [22:23:33]requested_item shift.opened is exist - process it [22:23:33]req_shift_opened [22:23:33]FM_GetShiftState [22:23:33]SAM_PROTO_GetShiftState [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 13 01 00 [22:23:33]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 5F [22:23:33]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetShiftState done [22:23:33]FM_GetShiftState done [22:23:33]req_shift_opened done [22:23:33]requested_item shift.open_date is exist - process it [22:23:33]req_shift_open_date [22:23:33]req_shift_open_date done [22:23:33]produce_requested_data done [22:23:33]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34474,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069} [22:23:33]process_action_free close_receipt [22:23:33]json_value_free [22:23:33]json_value_free done [22:23:33]process_json_proto returns [22:23:33]Send response to host [22:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34474,"shift.num":325,"shift.opened":1,"shift.open_date":1718843069}}} [22:23:33]free response buf [22:23:33]execute_script done [22:23:33]execute_script returns [22:23:33]free content buf [22:23:33]Sock 7.Close socket [22:23:33]Sock 7.Thread stoped [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:49]accept exits with 9 [22:24:49]New connection [22:24:49]New thread 3066699108 created [22:24:49]Thread 3066555748 joined [22:24:49]Waiting for new connection... [22:24:49] Sock 9.Parse request [22:24:49]Sock 9.Check first char [22:24:49]Sock 9.First char is OK [22:24:49]request: POST /json_proto HTTP/1.0 [22:24:49]Method: POST [22:24:49]URL: /json_proto [22:24:49]Method is POST - this is cgi request [22:24:49]url: /json_proto [22:24:49]query_string will be loaded in cgi processing [22:24:49]execute_cgi json_proto POST (null) [22:24:49]execute_cgi path=json_proto method=POST [22:24:49]POST find Content-Length [22:24:49]Host: 172.17.38.134:8080 [22:24:49]Content-Length: 1090 [22:24:49]Content-Type: application/json [22:24:49] [22:24:49]POST finish read [22:24:49]Found Content-Length = 1090 [22:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184244", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 810.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:49]execute_script... [22:24: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 : (3)184244", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 810.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:49]POST & json_proto [22:24:49]process_json_proto [22:24:49]json parsed OK: [22:24:49]protocol is kg_v1.0 [22:24:49]action value=close_receipt [22:24:49]process_action close_receipt [22:24:49]cmd_close_receipt [22:24:49]MH_GetDate [22:24:49]Write to MH i2c: F0 00 00 CA 01 BA [22:24:49]Write i2c OK [22:24:49]MH_I2C_Read... [22:24:49]Read from MH i2c: F0 [22:24:49]MH_I2C_Read... [22:24:49]Read from MH i2c: F0 09 00 [22:24:49]MH_I2C_Read... [22:24:49]Read from MH i2c: F0 09 00 CA 01 00 32 AC 74 66 13 9C 7C 64 0A [22:24:49]GetLastDocTimeStamp 1718922210 [22:24:49]current date 1718922290 [22:24:49]FM_GetShiftState [22:24:49]SAM_PROTO_GetShiftState [22:24:49]wFMCommunicate request_size=4 [22:24:49]MH_SAM_APDU [22:24:49]CAPDU: 80 13 01 00 [22:24:49]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [22:24:49]Write i2c OK [22:24:49]MH_I2C_Read... [22:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:49]Read from MH i2c: E2 [22:24:49]MH_I2C_Read... [22:24:49]Read from MH i2c: E2 0E 00 [22:24:49]MH_I2C_Read... [22:24:49]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 BD 76 73 66 00 00 00 00 90 00 61 [22:24:49]RAPDU: 09 00 01 BD 76 73 66 00 00 00 00 90 00 [22:24:49]wFMCommunicate OK [22:24:49]SAM_PROTO_GetShiftState done [22:24:49]FM_GetShiftState done [22:24:49]opened in 1718843069 [22:24:49]opened+sec_in_day 1718929469 [22:24:49]quantity*price = 11000 [22:24:49]sum+1 = 11001 [22:24:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 0.00 Безнал.: 276.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 1 21.06.2024 01:10 Смена: 326 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34480 ФПД: 187333872189365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011025&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34480&fm=187333872189365&tin=02508201610067®Number=0000000000092786&sum=27600 0 [01:10:25]StoreToDocumentArchive [01:10:25]shift 326 fd 34480 [01:10:25]save to /storage/0326/doc_00034480 [01:10:25]save last doc name /storage/0326/doc_00034480 to /storage/kkm_last_doc_name [01:10:25]save OK [01:10:25]Clear old archive folders... [01:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:10:25]tlvbuf is 01DCA3B0 [01:10:25]SAM_PROTO_ClearQueue [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 09 00 00 [01:10:25]Write to MH i2c: E2 08 00 8F 02 80 09 00 00 00 00 00 00 03 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [01:10:25]RAPDU: 90 00 [01:10:25]wFMCommunicate OK [01:10:25]SAM_PROTO_ClearQueue done [01:10:25]KKMCreateOFDPacket [01:10:25]OFDProtocolAddRootSTLVToBuf [01:10:25]FM_MakeSignedData [01:10:25]FM_MakeSignedData [01:10:25]SAM_PROTO_SignData [01:10:25]wFMCommunicate request_size=4 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 0D 01 02 [01:10:25]Write to MH i2c: E2 08 00 90 02 80 0D 01 02 00 00 00 00 0B [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:25]Read from MH i2c: E2 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 [01:10:25]MH_I2C_Read... [01:10:25]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [01:10:25]RAPDU: 90 00 [01:10:25]wFMCommunicate OK [01:10:25]wFMCommunicate request_size=255 [01:10:25]MH_SAM_APDU [01:10:25]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 01 D3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [01:10:25]Write to MH i2c: E2 02 01 91 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 01 D3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 C5 [01:10:25]Write i2c OK [01:10:25]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 91 02 00 90 00 07 [01:10:26]RAPDU: 90 00 [01:10:26]wFMCommunicate OK [01:10:26]wFMCommunicate request_size=33 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 86 00 00 35 04 06 00 AA 61 10 E7 FF B5 [01:10:26]Write to MH i2c: E2 24 00 92 02 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 86 00 00 35 04 06 00 AA 61 10 E7 FF B5 00 00 8B [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [01:10:26]RAPDU: 90 00 [01:10:26]wFMCommunicate OK [01:10:26]wFMCommunicate request_size=4 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 0D 03 02 [01:10:26]Write to MH i2c: E2 08 00 93 02 80 0D 03 02 00 00 00 00 10 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 0B 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 0B 00 93 02 00 C6 2C 18 7F 3F B2 DA 49 90 00 AE [01:10:26]RAPDU: C6 2C 18 7F 3F B2 DA 49 90 00 [01:10:26]wFMCommunicate OK [01:10:26]SAM_PROTO_SignData done [01:10:26]FM_MakeSignedData done [01:10:26]CreateOFDProtocolMessage [01:10:26]wFMCommunicate request_size=4 [01:10:26]MH_SAM_APDU [01:10:26]CAPDU: 80 11 00 00 [01:10:26]Write to MH i2c: E2 08 00 94 02 80 11 00 00 00 00 00 00 10 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:26]Read from MH i2c: E2 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 17 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: E2 17 00 94 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 65 [01:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:10:26]wFMCommunicate OK [01:10:26]CreateOFDProtocolMessage done [01:10:26]OFDSenderStorePacket 34480 [01:10:26]StoreOFDPacket docnum=34480 [01:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 C3 C4 1E 01 A3 D6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 01 D3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 86 00 00 35 04 06 00 AA 61 10 E7 FF B5 C6 2C 18 7F 3F B2 DA 49 [01:10:26]CheckFolder [01:10:26]dirname=/storage/ofd_packets [01:10:26]CheckFolder done [01:10:26]ProducePacketName [01:10:26]name=ofd_packets/00034480 [01:10:26]NVStorageSaveData ofd_packets/00034480 [01:10:26]File name is /storage/ofd_packets/00034480 [01:10:26]Write 324 bytes [01:10:26]NVStorageSaveData done [01:10:26]OFDSenderStorePacket done [01:10:26]KKMCreateOFDPacket done [01:10:26]NVStorageSaveData kkm_last_timestamp [01:10:26]File name is /storage/kkm_last_timestamp [01:10:26]Write 4 bytes [01:10:26]NVStorageSaveData done [01:10:26]ExternCall_PrintAddStr [01:10:26]wPrintStart [01:10:26]Write to MH i2c: 01 00 00 95 02 97 [01:10:26]Write i2c OK [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 07 00 [01:10:26]MH_I2C_Read... [01:10:26]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 FF 0F AC [01:10:26]RasterBufferAndPrint [01:10:26]line Счет N : (3)184248 [01:10:26]line ИНН: 02508201610067 [01:10:26]line Контрольно-Кассовый Чек [01:10:26]line ПРОДАЖА [01:10:26]line Товар: 4640030091645 [01:10:26]line Сигареты ESSE Exchange M [01:10:26]line 2.000 * 138.00 [01:10:26]line = 276.00 [01:10:26]line НДС 12% НСП 1% [01:10:26]line > о реализуемом товаре [01:10:26]line ИТОГО: 276.00 [01:10:26]line НСП 1% : 2.44 [01:10:26]line НДС 12% : 29.31 [01:10:26]line Наличными: 0.00 [01:10:26]line Безнал.: 276.00 [01:10:26]line Место: АЗС № 120 "Партнер Нефть" [01:10:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:10:26]line СНО: Общий режим [01:10:26]line Чек 1 21.06.2024 01:10 [01:10:26]line Смена: 326 ФФД: 1.0 [01:10:26]line ЗНМ: 0300000172 [01:10:26]line РНМ: 0000000000092786 [01:10:26]line Версия ККМ: 001 [01:10:26]line Платежная система: Бакай Банк [01:10:26]line ФМ: 0000000000875095 [01:10:26]line ФД: 34480 [01:10:26]line ФПД: 187333872189365 [01:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T011025&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34480&fm=187333872189365&tin=02508201610067®Number=0000000000092786&sum=27600 [01:10:26]line 0 [01:10:26]OFD Sender: Processing packet 34480 [packets to send 8, broken 7] [01:10:26]ProducePacketName [01:10:26]name=ofd_packets/00034480 [01:10:26]OFD Sender: To server: pG, [01:10:26]CommunicateWithHost lk.salyk.kg:30040 [01:10:26]ConnectInit lk.salyk.kg [01:10:26]written 0, free lines is 4095 [01:10:26]Connected sock=10 [01:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 C3 C4 1E 01 A3 D6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 01 D3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 86 00 00 35 04 06 00 AA 61 10 E7 FF B5 C6 2C 18 7F 3F B2 DA 49 [01:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 4D 6C 47 00 EF 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 35 30 39 35 10 04 04 00 B0 86 00 00 F4 03 04 00 C9 79 74 66 B6 04 01 00 00 95 85 4E B9 65 38 C3 BA [01:10:27]CommunicateWithHost err = 0 [01:10:27]CheckOFDResponse [01:10:27]1017 (14) - 77093643461234 [01:10:27]1041 (16) - 0000000000875095 [01:10:27]1040 (4) - 34480 [01:10:27]1012 (4) - 20.06.2024 18:49 [01:10:27]1206 (1) - 0 [01:10:27]OFD Sender: Remove packet 34480 [01:10:27]ProducePacketName [01:10:27]name=ofd_packets/00034480 [01:10:27]NVStorageDeleteData [01:10:27]Write to MH i2c: 01 00 00 BF 02 C1 [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 EB 0C BF [01:10:27]RasterBufferAndPrint [01:10:27]line [01:10:27]line [01:10:27]line [01:10:27]line [01:10:27]line [01:10:27]written 0, free lines is 3313 [01:10:27]MH_Cut [01:10:27]Write to MH i2c: D1 01 00 C6 02 01 9A [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: D1 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: D1 01 00 [01:10:27]MH_I2C_Read... [01:10:27]Read from MH i2c: D1 01 00 C6 02 00 99 [01:10:27]Write to MH i2c: 01 00 00 C7 02 C9 [01:10:27]Write i2c OK [01:10:27]MH_I2C_Read... [01:10:27]OFD Sender: No OFD packet to send [01:10:27]*** Cut start [01:10:27]*** Partial cut [01:10:27]*** CUTSNS_PIN = 1 [01:10:27]*** CUTSNS_PIN = 0 [01:10:28]*** Brake cut motor [01:10:28]Read from MH i2c: 01 [01:10:28]MH_I2C_Read... [01:10:28]*** Stop cut motor [01:10:28]*** Cut end [01:10:28]Read from MH i2c: 01 07 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [01:10:28]process_action close_receipt done [01:10:28]requested_data is exist [01:10:28]produce_requested_data [01:10:28]requested_item fm.sn is exist - process it [01:10:28]wFMCommunicate request_size=4 [01:10:28]MH_SAM_APDU [01:10:28]CAPDU: 80 11 00 00 [01:10:28]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:28]Read from MH i2c: E2 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 17 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 99 [01:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:10:28]wFMCommunicate OK [01:10:28]requested_item fd.num is exist - process it [01:10:28]SAM_PROTO_GetFieldsCounters [01:10:28]wFMCommunicate request_size=4 [01:10:28]MH_SAM_APDU [01:10:28]CAPDU: 80 13 00 00 [01:10:28]Write to MH i2c: E2 08 00 C9 02 80 13 00 00 00 00 00 00 47 [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:28]Read from MH i2c: E2 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 62 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 62 00 C9 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B0 86 00 00 0E 04 04 00 46 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 F1 [01:10: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B0 86 00 00 0E 04 04 00 46 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 [01:10:28]wFMCommunicate OK [01:10:28]SAM_PROTO_GetFieldsCounters done [01:10:28]requested_item shift.num is exist - process it [01:10:28]requested_item shift.opened is exist - process it [01:10:28]req_shift_opened [01:10:28]FM_GetShiftState [01:10:28]SAM_PROTO_GetShiftState [01:10:28]wFMCommunicate request_size=4 [01:10:28]MH_SAM_APDU [01:10:28]CAPDU: 80 13 01 00 [01:10:28]Write to MH i2c: E2 08 00 CA 02 80 13 01 00 00 00 00 00 49 [01:10:28]Write i2c OK [01:10:28]MH_I2C_Read... [01:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:28]Read from MH i2c: E2 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 0E 00 [01:10:28]MH_I2C_Read... [01:10:28]Read from MH i2c: E2 0E 00 CA 02 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 25 [01:10:28]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [01:10:28]wFMCommunicate OK [01:10:28]SAM_PROTO_GetShiftState done [01:10:28]FM_GetShiftState done [01:10:28]req_shift_opened done [01:10:28]requested_item shift.open_date is exist - process it [01:10:28]req_shift_open_date [01:10:28]req_shift_open_date done [01:10:28]produce_requested_data done [01:10:28]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34480,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454} [01:10:28]process_action_free close_receipt [01:10:28]json_value_free [01:10:28]json_value_free done [01:10:28]process_json_proto returns [01:10:28]Send response to host [01:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34480,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454}}} [01:10:28]free response buf [01:10:28]execute_script done [01:10:28]execute_script returns [01:10:28]free content buf [01:10:28]Sock 7.Close socket [01:10:28]Sock 7.Thread stoped [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:20]accept exits with 9 [01:20:20]New connection [01:20:20]New thread 3067370852 created [01:20:20]Thread 3067514212 joined [01:20:20]Waiting for new connection... [01:20:20] Sock 9.Parse request [01:20:20]Sock 9.Check first char [01:20:20]Sock 9.First char is OK [01:20:20]request: POST /json_proto HTTP/1.0 [01:20:20]Method: POST [01:20:20]URL: /json_proto [01:20:20]Method is POST - this is cgi request [01:20:20]url: /json_proto [01:20:20]query_string will be loaded in cgi processing [01:20:20]execute_cgi json_proto POST (null) [01:20:20]execute_cgi path=json_proto method=POST [01:20:20]POST find Content-Length [01:20:20]Host: 172.17.38.134:8080 [01:20:20]Content-Length: 696 [01:20:20]Content-Type: application/json [01:20:20] [01:20:20]POST finish read [01:20:20]Found Content-Length = 696 [01:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184249", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:20]execute_script... [01:20:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184249", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:20]POST & json_proto [01:20:20]process_json_proto [01:20:20]json parsed OK: [01:20:20]protocol is kg_v1.0 [01:20:20]action value=close_receipt [01:20:20]process_action close_receipt [01:20:20]cmd_close_receipt [01:20:20]MH_GetDate [01:20:20]Write to MH i2c: F0 00 00 CB 02 BC [01:20:20]Write i2c OK [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: F0 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: F0 09 00 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: F0 09 00 CB 02 00 55 D5 74 66 13 9C 7C 64 58 [01:20:20]GetLastDocTimeStamp 1718932225 [01:20:20]current date 1718932821 [01:20:20]FM_GetShiftState [01:20:20]SAM_PROTO_GetShiftState [01:20:20]wFMCommunicate request_size=4 [01:20:20]MH_SAM_APDU [01:20:20]CAPDU: 80 13 01 00 [01:20:20]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [01:20:20]Write i2c OK [01:20:20]MH_I2C_Read... [01:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:20]Read from MH i2c: E2 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 0E 00 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 27 [01:20:20]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [01:20:20]wFMCommunicate OK [01:20:20]SAM_PROTO_GetShiftState done [01:20:20]FM_GetShiftState done [01:20:20]opened in 1718929454 [01:20:20]opened+sec_in_day 1719015854 [01:20:20]quantity*price = 11300 [01:20:20]sum+1 = 11301 [01:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 21.06.2024 01:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34481 ФПД: 42503815525024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012021&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34481&fm=42503815525024&tin=02508201610067®Number=0000000000092786&sum=11300 0 [01:20:21]StoreToDocumentArchive [01:20:21]shift 326 fd 34481 [01:20:21]save to /storage/0326/doc_00034481 [01:20:21]save last doc name /storage/0326/doc_00034481 to /storage/kkm_last_doc_name [01:20:21]save OK [01:20:21]Clear old archive folders... [01:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=296 [01:20:21]tlvbuf is B6E31500 [01:20:21]SAM_PROTO_ClearQueue [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 09 00 00 [01:20:21]Write to MH i2c: E2 08 00 D9 02 80 09 00 00 00 00 00 00 4D [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [01:20:21]RAPDU: 90 00 [01:20:21]wFMCommunicate OK [01:20:21]SAM_PROTO_ClearQueue done [01:20:21]KKMCreateOFDPacket [01:20:21]OFDProtocolAddRootSTLVToBuf [01:20:21]FM_MakeSignedData [01:20:21]FM_MakeSignedData [01:20:21]SAM_PROTO_SignData [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 0D 01 02 [01:20:21]Write to MH i2c: E2 08 00 DA 02 80 0D 01 02 00 00 00 00 55 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 DA 02 00 90 00 50 [01:20:21]RAPDU: 90 00 [01:20:21]wFMCommunicate OK [01:20:21]wFMCommunicate request_size=255 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 55 D5 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [01:20:21]Write to MH i2c: E2 02 01 DB 02 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 55 D5 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 FB [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [01:20:21]RAPDU: 90 00 [01:20:21]wFMCommunicate OK [01:20:21]wFMCommunicate request_size=55 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 86 00 00 35 04 06 00 26 A8 30 D3 72 A0 [01:20:21]Write to MH i2c: E2 3A 00 DC 02 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 86 00 00 35 04 06 00 26 A8 30 D3 72 A0 00 00 D4 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:22]Read from MH i2c: E2 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 03 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [01:20:22]RAPDU: 90 00 [01:20:22]wFMCommunicate OK [01:20:22]wFMCommunicate request_size=4 [01:20:22]MH_SAM_APDU [01:20:22]CAPDU: 80 0D 03 02 [01:20:22]Write to MH i2c: E2 08 00 DD 02 80 0D 03 02 00 00 00 00 5A [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:22]Read from MH i2c: E2 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 0B 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 0B 00 DD 02 00 E5 FD 11 44 4C E7 7C CF 90 00 10 [01:20:22]RAPDU: E5 FD 11 44 4C E7 7C CF 90 00 [01:20:22]wFMCommunicate OK [01:20:22]SAM_PROTO_SignData done [01:20:22]FM_MakeSignedData done [01:20:22]CreateOFDProtocolMessage [01:20:22]wFMCommunicate request_size=4 [01:20:22]MH_SAM_APDU [01:20:22]CAPDU: 80 11 00 00 [01:20:22]Write to MH i2c: E2 08 00 DE 02 80 11 00 00 00 00 00 00 5A [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:22]Read from MH i2c: E2 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 17 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 17 00 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AF [01:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:20:22]wFMCommunicate OK [01:20:22]CreateOFDProtocolMessage done [01:20:22]OFDSenderStorePacket 34481 [01:20:22]StoreOFDPacket docnum=34481 [01:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 ED 17 34 01 3A 51 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 55 D5 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 86 00 00 35 04 06 00 26 A8 30 D3 72 A0 E5 FD 11 44 4C E7 7C CF [01:20:22]CheckFolder [01:20:22]dirname=/storage/ofd_packets [01:20:22]CheckFolder done [01:20:22]ProducePacketName [01:20:22]name=ofd_packets/00034481 [01:20:22]NVStorageSaveData ofd_packets/00034481 [01:20:22]File name is /storage/ofd_packets/00034481 [01:20:22]Write 346 bytes [01:20:22]NVStorageSaveData done [01:20:22]OFDSenderStorePacket done [01:20:22]KKMCreateOFDPacket done [01:20:22]NVStorageSaveData kkm_last_timestamp [01:20:22]File name is /storage/kkm_last_timestamp [01:20:22]Write 4 bytes [01:20:22]NVStorageSaveData done [01:20:22]ExternCall_PrintAddStr [01:20:22]wPrintStart [01:20:22]Write to MH i2c: 01 00 00 DF 02 E1 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 DF 02 00 00 00 00 00 FF 0F F6 [01:20:22]RasterBufferAndPrint [01:20:22]line Счет N : (3)184249 [01:20:22]line ИНН: 02508201610067 [01:20:22]line Контрольно-Кассовый Чек [01:20:22]line ПРОДАЖА [01:20:22]line Товар: 4870202521261 [01:20:22]line Напиток MAXI чай 1,2 лесные ягоды [01:20:22]line 1.000 * 113.00 [01:20:22]line = 113.00 [01:20:22]line НДС 12% НСП 1% [01:20:22]line > о реализуемом товаре [01:20:22]line ИТОГО: 113.00 [01:20:22]line НСП 1% : 1.00 [01:20:22]line НДС 12% : 12.00 [01:20:22]line Наличными: 113.00 [01:20:22]line Безнал.: 0.00 [01:20:22]line Место: АЗС № 120 "Партнер Нефть" [01:20:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:20:22]line СНО: Общий режим [01:20:22]line Чек 2 21.06.2024 01:20 [01:20:22]line Смена: 326 ФФД: 1.0 [01:20:22]line ЗНМ: 0300000172 [01:20:22]line РНМ: 0000000000092786 [01:20:22]line Версия ККМ: 001 [01:20:22]line ФМ: 0000000000875095 [01:20:22]line ФД: 34481 [01:20:22]line ФПД: 42503815525024 [01:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012021&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34481&fm=42503815525024&tin=02508201610067®Number=0000000000092786&sum=11300 [01:20:22]line 0 [01:20:22]OFD Sender: Processing packet 34481 [packets to send 8, broken 7] [01:20:22]ProducePacketName [01:20:22]name=ofd_packets/00034481 [01:20:22]OFD Sender: To server: pG, [01:20:22]CommunicateWithHost lk.salyk.kg:30040 [01:20:22]ConnectInit lk.salyk.kg [01:20:22]written 0, free lines is 4095 [01:20:22]Connected sock=10 [01:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 ED 17 34 01 3A 51 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 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 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 55 D5 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 86 00 00 35 04 06 00 26 A8 30 D3 72 A0 E5 FD 11 44 4C E7 7C CF [01:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 38 0E 47 00 15 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 86 00 00 F4 03 04 00 1D 7C 74 66 B6 04 01 00 00 36 DA 1A 56 DD 29 53 AE [01:20:22]CommunicateWithHost err = 0 [01:20:22]CheckOFDResponse [01:20:22]1017 (14) - 77093643461234 [01:20:22]1041 (16) - 0000000000875095 [01:20:22]1040 (4) - 34481 [01:20:22]1012 (4) - 20.06.2024 18:59 [01:20:22]1206 (1) - 0 [01:20:22]OFD Sender: Remove packet 34481 [01:20:22]ProducePacketName [01:20:22]name=ofd_packets/00034481 [01:20:22]NVStorageDeleteData [01:20:22]Write to MH i2c: 01 00 00 08 03 0B [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 E4 0C 02 [01:20:22]RasterBufferAndPrint [01:20:22]line [01:20:22]line [01:20:22]line [01:20:22]line [01:20:22]line [01:20:22]written 0, free lines is 3307 [01:20:22]MH_Cut [01:20:22]Write to MH i2c: D1 01 00 0F 03 01 E4 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: D1 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: D1 01 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: D1 01 00 0F 03 00 E3 [01:20:22]Write to MH i2c: 01 00 00 10 03 13 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:23]OFD Sender: No OFD packet to send [01:20:23]*** Cut start [01:20:23]*** Partial cut [01:20:23]*** CUTSNS_PIN = 1 [01:20:23]*** CUTSNS_PIN = 0 [01:20:23]*** Brake cut motor [01:20:24]Read from MH i2c: 01 [01:20:24]MH_I2C_Read... [01:20:24]*** Stop cut motor [01:20:24]*** Cut end [01:20:24]Read from MH i2c: 01 07 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [01:20:24]process_action close_receipt done [01:20:24]requested_data is exist [01:20:24]produce_requested_data [01:20:24]requested_item fm.sn is exist - process it [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 11 00 00 [01:20:24]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 17 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E3 [01:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:20:24]wFMCommunicate OK [01:20:24]requested_item fd.num is exist - process it [01:20:24]SAM_PROTO_GetFieldsCounters [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 13 00 00 [01:20:24]Write to MH i2c: E2 08 00 12 03 80 13 00 00 00 00 00 00 91 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 62 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 62 00 12 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B1 86 00 00 0E 04 04 00 46 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 3F [01:20: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B1 86 00 00 0E 04 04 00 46 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 [01:20:24]wFMCommunicate OK [01:20:24]SAM_PROTO_GetFieldsCounters done [01:20:24]requested_item shift.num is exist - process it [01:20:24]requested_item shift.opened is exist - process it [01:20:24]req_shift_opened [01:20:24]FM_GetShiftState [01:20:24]SAM_PROTO_GetShiftState [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 13 01 00 [01:20:24]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 0E 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 6F [01:20:24]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [01:20:24]wFMCommunicate OK [01:20:24]SAM_PROTO_GetShiftState done [01:20:24]FM_GetShiftState done [01:20:24]req_shift_opened done [01:20:24]requested_item shift.open_date is exist - process it [01:20:24]req_shift_open_date [01:20:24]req_shift_open_date done [01:20:24]produce_requested_data done [01:20:24]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34481,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454} [01:20:24]process_action_free close_receipt [01:20:24]json_value_free [01:20:24]json_value_free done [01:20:24]process_json_proto returns [01:20:24]Send response to host [01:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34481,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454}}} [01:20:24]free response buf [01:20:24]execute_script done [01:20:24]execute_script returns [01:20:24]free content buf [01:20:24]Sock 9.Close socket [01:20:24]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:56]accept exits with 7 [01:25:56]New connection [01:25:56]New thread 3067514212 created [01:25:56]Thread 3067370852 joined [01:25:56]Waiting for new connection... [01:25:56] Sock 7.Parse request [01:25:56]Sock 7.Check first char [01:25:56]Sock 7.First char is OK [01:25:56]request: POST /json_proto HTTP/1.0 [01:25:56]Method: POST [01:25:56]URL: /json_proto [01:25:56]Method is POST - this is cgi request [01:25:56]url: /json_proto [01:25:56]query_string will be loaded in cgi processing [01:25:56]execute_cgi json_proto POST (null) [01:25:56]execute_cgi path=json_proto method=POST [01:25:56]POST find Content-Length [01:25:56]Host: 172.17.38.134:8080 [01:25:56]Content-Length: 718 [01:25:56]Content-Type: application/json [01:25:56] [01:25:56]POST finish read [01:25:56]Found Content-Length = 718 [01:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184250", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:56]execute_script... [01:25: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)184250", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:56]POST & json_proto [01:25:56]process_json_proto [01:25:56]json parsed OK: [01:25:56]protocol is kg_v1.0 [01:25:56]action value=close_receipt [01:25:56]process_action close_receipt [01:25:56]cmd_close_receipt [01:25:56]MH_GetDate [01:25:56]Write to MH i2c: F0 00 00 14 03 06 [01:25:56]Write i2c OK [01:25:56]MH_I2C_Read... [01:25:56]Read from MH i2c: F0 [01:25:56]MH_I2C_Read... [01:25:56]Read from MH i2c: F0 09 00 [01:25:56]MH_I2C_Read... [01:25:56]Read from MH i2c: F0 09 00 14 03 00 A5 D6 74 66 13 9C 7C 64 F3 [01:25:56]GetLastDocTimeStamp 1718932821 [01:25:56]current date 1718933157 [01:25:56]FM_GetShiftState [01:25:56]SAM_PROTO_GetShiftState [01:25:56]wFMCommunicate request_size=4 [01:25:56]MH_SAM_APDU [01:25:56]CAPDU: 80 13 01 00 [01:25:56]Write to MH i2c: E2 08 00 15 03 80 13 01 00 00 00 00 00 95 [01:25:56]Write i2c OK [01:25:56]MH_I2C_Read... [01:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:56]Read from MH i2c: E2 [01:25:56]MH_I2C_Read... [01:25:56]Read from MH i2c: E2 0E 00 [01:25:56]MH_I2C_Read... [01:25:56]Read from MH i2c: E2 0E 00 15 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 71 [01:25:56]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [01:25:56]wFMCommunicate OK [01:25:56]SAM_PROTO_GetShiftState done [01:25:56]FM_GetShiftState done [01:25:56]opened in 1718929454 [01:25:56]opened+sec_in_day 1719015854 [01:25:56]quantity*price = 500000 [01:25:56]sum+1 = 500001 [01:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.97 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 21.06.2024 01:25 Смена: 326 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34482 ФПД: 93523439225217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012557&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34482&fm=93523439225217&tin=02508201610067®Number=0000000000092786&sum=500000 0 [01:25:57]StoreToDocumentArchive [01:25:57]shift 326 fd 34482 [01:25:57]save to /storage/0326/doc_00034482 [01:25:57]save last doc name /storage/0326/doc_00034482 to /storage/kkm_last_doc_name [01:25:57]save OK [01:25:57]Clear old archive folders... [01:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=299 [01:25:57]tlvbuf is 01D688A0 [01:25:57]SAM_PROTO_ClearQueue [01:25:57]wFMCommunicate request_size=4 [01:25:57]MH_SAM_APDU [01:25:57]CAPDU: 80 09 00 00 [01:25:57]Write to MH i2c: E2 08 00 22 03 80 09 00 00 00 00 00 00 97 [01:25:57]Write i2c OK [01:25:57]MH_I2C_Read... [01:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:57]Read from MH i2c: E2 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [01:25:57]RAPDU: 90 00 [01:25:57]wFMCommunicate OK [01:25:57]SAM_PROTO_ClearQueue done [01:25:57]KKMCreateOFDPacket [01:25:57]OFDProtocolAddRootSTLVToBuf [01:25:57]FM_MakeSignedData [01:25:57]FM_MakeSignedData [01:25:57]SAM_PROTO_SignData [01:25:57]wFMCommunicate request_size=4 [01:25:57]MH_SAM_APDU [01:25:57]CAPDU: 80 0D 01 02 [01:25:57]Write to MH i2c: E2 08 00 23 03 80 0D 01 02 00 00 00 00 9F [01:25:57]Write i2c OK [01:25:57]MH_I2C_Read... [01:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:57]Read from MH i2c: E2 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [01:25:57]RAPDU: 90 00 [01:25:57]wFMCommunicate OK [01:25:57]wFMCommunicate request_size=255 [01:25:57]MH_SAM_APDU [01:25:57]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A5 D6 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [01:25:57]Write to MH i2c: E2 02 01 24 03 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A5 D6 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 F0 [01:25:57]Write i2c OK [01:25:57]MH_I2C_Read... [01:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:57]Read from MH i2c: E2 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 [01:25:57]MH_I2C_Read... [01:25:57]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [01:25:57]RAPDU: 90 00 [01:25:57]wFMCommunicate OK [01:25:57]wFMCommunicate request_size=58 [01:25:57]MH_SAM_APDU [01:25:57]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 86 00 00 35 04 06 00 55 0F 1F 5F 89 81 [01:25:57]Write to MH i2c: E2 3D 00 25 03 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 86 00 00 35 04 06 00 55 0F 1F 5F 89 81 00 00 BE [01:25:57]Write i2c OK [01:25:57]MH_I2C_Read... [01:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:58]Read from MH i2c: E2 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 03 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [01:25:58]RAPDU: 90 00 [01:25:58]wFMCommunicate OK [01:25:58]wFMCommunicate request_size=4 [01:25:58]MH_SAM_APDU [01:25:58]CAPDU: 80 0D 03 02 [01:25:58]Write to MH i2c: E2 08 00 26 03 80 0D 03 02 00 00 00 00 A4 [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:58]Read from MH i2c: E2 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 0B 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 0B 00 26 03 00 AA D3 1A CE 54 D2 DF FA 90 00 09 [01:25:58]RAPDU: AA D3 1A CE 54 D2 DF FA 90 00 [01:25:58]wFMCommunicate OK [01:25:58]SAM_PROTO_SignData done [01:25:58]FM_MakeSignedData done [01:25:58]CreateOFDProtocolMessage [01:25:58]wFMCommunicate request_size=4 [01:25:58]MH_SAM_APDU [01:25:58]CAPDU: 80 11 00 00 [01:25:58]Write to MH i2c: E2 08 00 27 03 80 11 00 00 00 00 00 00 A4 [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:58]Read from MH i2c: E2 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 17 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: E2 17 00 27 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F9 [01:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:25:58]wFMCommunicate OK [01:25:58]CreateOFDProtocolMessage done [01:25:58]OFDSenderStorePacket 34482 [01:25:58]StoreOFDPacket docnum=34482 [01:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 28 FF 37 01 94 6D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A5 D6 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 86 00 00 35 04 06 00 55 0F 1F 5F 89 81 AA D3 1A CE 54 D2 DF FA [01:25:58]CheckFolder [01:25:58]dirname=/storage/ofd_packets [01:25:58]CheckFolder done [01:25:58]ProducePacketName [01:25:58]name=ofd_packets/00034482 [01:25:58]NVStorageSaveData ofd_packets/00034482 [01:25:58]File name is /storage/ofd_packets/00034482 [01:25:58]Write 349 bytes [01:25:58]NVStorageSaveData done [01:25:58]OFDSenderStorePacket done [01:25:58]KKMCreateOFDPacket done [01:25:58]NVStorageSaveData kkm_last_timestamp [01:25:58]File name is /storage/kkm_last_timestamp [01:25:58]Write 4 bytes [01:25:58]NVStorageSaveData done [01:25:58]ExternCall_PrintAddStr [01:25:58]wPrintStart [01:25:58]Write to MH i2c: 01 00 00 28 03 2B [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 FF 0F 40 [01:25:58]RasterBufferAndPrint [01:25:58]line Счет N : (3)184250 [01:25:58]line ИНН: 02508201610067 [01:25:58]line Контрольно-Кассовый Чек [01:25:58]line ПРОДАЖА [01:25:58]line Товар: 9780225379418 [01:25:58]line Подарочная топливная карта 5000с [01:25:58]line 1.000 * 5000.00 [01:25:58]line = 5000.00 [01:25:58]line НДС 12% НСП 1% [01:25:58]line > о реализуемом товаре [01:25:58]line ИТОГО: 5000.00 [01:25:58]line НСП 1% : 44.25 [01:25:58]line НДС 12% : 530.97 [01:25:58]line Наличными: 5000.00 [01:25:58]line Безнал.: 0.00 [01:25:58]line Место: АЗС № 120 "Партнер Нефть" [01:25:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:25:58]line СНО: Общий режим [01:25:58]line Чек 3 21.06.2024 01:25 [01:25:58]line Смена: 326 ФФД: 1.0 [01:25:58]line ЗНМ: 0300000172 [01:25:58]line РНМ: 0000000000092786 [01:25:58]line Версия ККМ: 001 [01:25:58]line ФМ: 0000000000875095 [01:25:58]line ФД: 34482 [01:25:58]line ФПД: 93523439225217 [01:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012557&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34482&fm=93523439225217&tin=02508201610067®Number=0000000000092786&sum=500000 [01:25:58]line 0 [01:25:58]OFD Sender: Processing packet 34482 [packets to send 8, broken 7] [01:25:58]ProducePacketName [01:25:58]name=ofd_packets/00034482 [01:25:58]OFD Sender: To server: pG, [01:25:58]CommunicateWithHost lk.salyk.kg:30040 [01:25:58]ConnectInit lk.salyk.kg [01:25:58]written 0, free lines is 4095 [01:25:58]Connected sock=11 [01:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3F 01 00 00 28 FF 37 01 94 6D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A5 D6 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 86 00 00 35 04 06 00 55 0F 1F 5F 89 81 AA D3 1A CE 54 D2 DF FA [01:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 73 6E 47 00 40 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 86 00 00 F4 03 04 00 6D 7D 74 66 B6 04 01 00 00 8C 47 B1 40 65 4F 9C EF [01:25:58]CommunicateWithHost err = 0 [01:25:58]CheckOFDResponse [01:25:58]1017 (14) - 77093643461234 [01:25:58]1041 (16) - 0000000000875095 [01:25:58]1040 (4) - 34482 [01:25:58]1012 (4) - 20.06.2024 19:05 [01:25:58]1206 (1) - 0 [01:25:58]OFD Sender: Remove packet 34482 [01:25:58]ProducePacketName [01:25:58]name=ofd_packets/00034482 [01:25:58]NVStorageDeleteData [01:25:58]Write to MH i2c: 01 00 00 51 03 54 [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 E3 0C 4A [01:25:58]RasterBufferAndPrint [01:25:58]line [01:25:58]line [01:25:58]line [01:25:58]line [01:25:58]line [01:25:58]written 0, free lines is 3305 [01:25:58]MH_Cut [01:25:58]Write to MH i2c: D1 01 00 58 03 01 2D [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: D1 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: D1 01 00 [01:25:58]MH_I2C_Read... [01:25:58]Read from MH i2c: D1 01 00 58 03 00 2C [01:25:58]Write to MH i2c: 01 00 00 59 03 5C [01:25:58]Write i2c OK [01:25:58]MH_I2C_Read... [01:25:59]OFD Sender: No OFD packet to send [01:25:59]*** Cut start [01:25:59]*** Partial cut [01:25:59]*** CUTSNS_PIN = 1 [01:25:59]*** CUTSNS_PIN = 0 [01:25:59]*** Brake cut motor [01:26:00]Read from MH i2c: 01 [01:26:00]MH_I2C_Read... [01:26:00]*** Stop cut motor [01:26:00]*** Cut end [01:26:00]Read from MH i2c: 01 07 00 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [01:26:00]process_action close_receipt done [01:26:00]requested_data is exist [01:26:00]produce_requested_data [01:26:00]requested_item fm.sn is exist - process it [01:26:00]wFMCommunicate request_size=4 [01:26:00]MH_SAM_APDU [01:26:00]CAPDU: 80 11 00 00 [01:26:00]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [01:26:00]Write i2c OK [01:26:00]MH_I2C_Read... [01:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:00]Read from MH i2c: E2 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 17 00 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2C [01:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:26:00]wFMCommunicate OK [01:26:00]requested_item fd.num is exist - process it [01:26:00]SAM_PROTO_GetFieldsCounters [01:26:00]wFMCommunicate request_size=4 [01:26:00]MH_SAM_APDU [01:26:00]CAPDU: 80 13 00 00 [01:26:00]Write to MH i2c: E2 08 00 5B 03 80 13 00 00 00 00 00 00 DA [01:26:00]Write i2c OK [01:26:00]MH_I2C_Read... [01:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:00]Read from MH i2c: E2 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 62 00 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 62 00 5B 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B2 86 00 00 0E 04 04 00 46 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 8C [01:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B2 86 00 00 0E 04 04 00 46 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 [01:26:00]wFMCommunicate OK [01:26:00]SAM_PROTO_GetFieldsCounters done [01:26:00]requested_item shift.num is exist - process it [01:26:00]requested_item shift.opened is exist - process it [01:26:00]req_shift_opened [01:26:00]FM_GetShiftState [01:26:00]SAM_PROTO_GetShiftState [01:26:00]wFMCommunicate request_size=4 [01:26:00]MH_SAM_APDU [01:26:00]CAPDU: 80 13 01 00 [01:26:00]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [01:26:00]Write i2c OK [01:26:00]MH_I2C_Read... [01:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:00]Read from MH i2c: E2 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 0E 00 [01:26:00]MH_I2C_Read... [01:26:00]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 B8 [01:26:00]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [01:26:00]wFMCommunicate OK [01:26:00]SAM_PROTO_GetShiftState done [01:26:00]FM_GetShiftState done [01:26:00]req_shift_opened done [01:26:00]requested_item shift.open_date is exist - process it [01:26:00]req_shift_open_date [01:26:00]req_shift_open_date done [01:26:00]produce_requested_data done [01:26:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34482,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454} [01:26:00]process_action_free close_receipt [01:26:00]json_value_free [01:26:00]json_value_free done [01:26:00]process_json_proto returns [01:26:00]Send response to host [01:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34482,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454}}} [01:26:00]free response buf [01:26:00]execute_script done [01:26:00]execute_script returns [01:26:00]free content buf [01:26:00]Sock 7.Close socket [01:26:00]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]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:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59: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:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:29]accept exits with 9 [02:19:29]New connection [02:19:29]New thread 3067370852 created [02:19:29]Thread 3067514212 joined [02:19:29]Waiting for new connection... [02:19:29] Sock 9.Parse request [02:19:29]Sock 9.Check first char [02:19:29]Sock 9.First char is OK [02:19:29]request: POST /json_proto HTTP/1.0 [02:19:29]Method: POST [02:19:29]URL: /json_proto [02:19:29]Method is POST - this is cgi request [02:19:29]url: /json_proto [02:19:29]query_string will be loaded in cgi processing [02:19:29]execute_cgi json_proto POST (null) [02:19:29]execute_cgi path=json_proto method=POST [02:19:29]POST find Content-Length [02:19:29]Host: 172.17.38.134:8080 [02:19:29]Content-Length: 624 [02:19:29]Content-Type: application/json [02:19:29] [02:19:29]POST finish read [02:19:29]Found Content-Length = 624 [02:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184251", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:29]execute_script... [02:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184251", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:29]POST & json_proto [02:19:29]process_json_proto [02:19:29]json parsed OK: [02:19:29]protocol is kg_v1.0 [02:19:29]action value=close_receipt [02:19:29]process_action close_receipt [02:19:29]cmd_close_receipt [02:19:29]MH_GetDate [02:19:29]Write to MH i2c: F0 00 00 5D 03 4F [02:19:29]Write i2c OK [02:19:29]MH_I2C_Read... [02:19:29]Read from MH i2c: F0 [02:19:29]MH_I2C_Read... [02:19:29]Read from MH i2c: F0 09 00 [02:19:29]MH_I2C_Read... [02:19:29]Read from MH i2c: F0 09 00 5D 03 00 32 E3 74 66 13 9C 7C 64 D6 [02:19:29]GetLastDocTimeStamp 1718933157 [02:19:29]current date 1718936370 [02:19:29]FM_GetShiftState [02:19:29]SAM_PROTO_GetShiftState [02:19:29]wFMCommunicate request_size=4 [02:19:29]MH_SAM_APDU [02:19:29]CAPDU: 80 13 01 00 [02:19:29]Write to MH i2c: E2 08 00 5E 03 80 13 01 00 00 00 00 00 DE [02:19:29]Write i2c OK [02:19:29]MH_I2C_Read... [02:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:29]Read from MH i2c: E2 [02:19:29]MH_I2C_Read... [02:19:29]Read from MH i2c: E2 0E 00 [02:19:29]MH_I2C_Read... [02:19:29]Read from MH i2c: E2 0E 00 5E 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 BA [02:19:29]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [02:19:29]wFMCommunicate OK [02:19:29]SAM_PROTO_GetShiftState done [02:19:29]FM_GetShiftState done [02:19:29]opened in 1718929454 [02:19:29]opened+sec_in_day 1719015854 [02:19:29]quantity*price = 15100 [02:19:29]sum+1 = 15101 [02:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 21.06.2024 02:19 Смена: 326 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34483 ФПД: 75115279842759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T021930&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34483&fm=75115279842759&tin=02508201610067®Number=0000000000092786&sum=15100 0 [02:19:30]StoreToDocumentArchive [02:19:30]shift 326 fd 34483 [02:19:30]save to /storage/0326/doc_00034483 [02:19:30]save last doc name /storage/0326/doc_00034483 to /storage/kkm_last_doc_name [02:19:30]save OK [02:19:30]Clear old archive folders... [02:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [02:19:30]tlvbuf is 01D7C330 [02:19:30]SAM_PROTO_ClearQueue [02:19:30]wFMCommunicate request_size=4 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 09 00 00 [02:19:30]Write to MH i2c: E2 08 00 6B 03 80 09 00 00 00 00 00 00 E0 [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:30]Read from MH i2c: E2 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [02:19:30]RAPDU: 90 00 [02:19:30]wFMCommunicate OK [02:19:30]SAM_PROTO_ClearQueue done [02:19:30]KKMCreateOFDPacket [02:19:30]OFDProtocolAddRootSTLVToBuf [02:19:30]FM_MakeSignedData [02:19:30]FM_MakeSignedData [02:19:30]SAM_PROTO_SignData [02:19:30]wFMCommunicate request_size=4 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 0D 01 02 [02:19:30]Write to MH i2c: E2 08 00 6C 03 80 0D 01 02 00 00 00 00 E8 [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:30]Read from MH i2c: E2 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [02:19:30]RAPDU: 90 00 [02:19:30]wFMCommunicate OK [02:19:30]wFMCommunicate request_size=255 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 E3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 [02:19:30]Write to MH i2c: E2 02 01 6D 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 E3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 00 00 7B [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:30]Read from MH i2c: E2 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [02:19:30]RAPDU: 90 00 [02:19:30]wFMCommunicate OK [02:19:30]wFMCommunicate request_size=35 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 86 00 00 35 04 06 00 44 51 23 92 7D C7 [02:19:30]Write to MH i2c: E2 26 00 6E 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 86 00 00 35 04 06 00 44 51 23 92 7D C7 00 00 A7 [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:30]Read from MH i2c: E2 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [02:19:30]RAPDU: 90 00 [02:19:30]wFMCommunicate OK [02:19:30]wFMCommunicate request_size=4 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 0D 03 02 [02:19:30]Write to MH i2c: E2 08 00 6F 03 80 0D 03 02 00 00 00 00 ED [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:30]Read from MH i2c: E2 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 0B 00 [02:19:30]MH_I2C_Read... [02:19:30]Read from MH i2c: E2 0B 00 6F 03 00 4E 39 A4 E7 BA D7 BE 5A 90 00 A9 [02:19:30]RAPDU: 4E 39 A4 E7 BA D7 BE 5A 90 00 [02:19:30]wFMCommunicate OK [02:19:30]SAM_PROTO_SignData done [02:19:30]FM_MakeSignedData done [02:19:30]CreateOFDProtocolMessage [02:19:30]wFMCommunicate request_size=4 [02:19:30]MH_SAM_APDU [02:19:30]CAPDU: 80 11 00 00 [02:19:30]Write to MH i2c: E2 08 00 70 03 80 11 00 00 00 00 00 00 ED [02:19:30]Write i2c OK [02:19:30]MH_I2C_Read... [02:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:31]Read from MH i2c: E2 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: E2 17 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: E2 17 00 70 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 42 [02:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:19:31]wFMCommunicate OK [02:19:31]CreateOFDProtocolMessage done [02:19:31]OFDSenderStorePacket 34483 [02:19:31]StoreOFDPacket docnum=34483 [02:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 06 33 20 01 EB 1B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 E3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 86 00 00 35 04 06 00 44 51 23 92 7D C7 4E 39 A4 E7 BA D7 BE 5A [02:19:31]CheckFolder [02:19:31]dirname=/storage/ofd_packets [02:19:31]CheckFolder done [02:19:31]ProducePacketName [02:19:31]name=ofd_packets/00034483 [02:19:31]NVStorageSaveData ofd_packets/00034483 [02:19:31]File name is /storage/ofd_packets/00034483 [02:19:31]Write 326 bytes [02:19:31]NVStorageSaveData done [02:19:31]OFDSenderStorePacket done [02:19:31]KKMCreateOFDPacket done [02:19:31]NVStorageSaveData kkm_last_timestamp [02:19:31]File name is /storage/kkm_last_timestamp [02:19:31]Write 4 bytes [02:19:31]NVStorageSaveData done [02:19:31]ExternCall_PrintAddStr [02:19:31]wPrintStart [02:19:31]Write to MH i2c: 01 00 00 71 03 74 [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 07 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 FF 0F 89 [02:19:31]RasterBufferAndPrint [02:19:31]line Счет N : (3)184251 [02:19:31]line ИНН: 02508201610067 [02:19:31]line Контрольно-Кассовый Чек [02:19:31]line ПРОДАЖА [02:19:31]line Товар: 48742245 [02:19:31]line Сигареты Parliament Silver Blue [02:19:31]line 1.000 * 151.00 [02:19:31]line = 151.00 [02:19:31]line НДС 12% НСП 1% [02:19:31]line > о реализуемом товаре [02:19:31]line ИТОГО: 151.00 [02:19:31]line НСП 1% : 1.34 [02:19:31]line НДС 12% : 16.03 [02:19:31]line Наличными: 151.00 [02:19:31]line Безнал.: 0.00 [02:19:31]line Место: АЗС № 120 "Партнер Нефть" [02:19:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:19:31]line СНО: Общий режим [02:19:31]line Чек 4 21.06.2024 02:19 [02:19:31]line Смена: 326 ФФД: 1.0 [02:19:31]line ЗНМ: 0300000172 [02:19:31]line РНМ: 0000000000092786 [02:19:31]line Версия ККМ: 001 [02:19:31]line ФМ: 0000000000875095 [02:19:31]line ФД: 34483 [02:19:31]line ФПД: 75115279842759 [02:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T021930&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34483&fm=75115279842759&tin=02508201610067®Number=0000000000092786&sum=15100 [02:19:31]line 0 [02:19:31]OFD Sender: Processing packet 34483 [packets to send 8, broken 7] [02:19:31]ProducePacketName [02:19:31]name=ofd_packets/00034483 [02:19:31]OFD Sender: To server: pG, [02:19:31]CommunicateWithHost lk.salyk.kg:30040 [02:19:31]ConnectInit lk.salyk.kg [02:19:31]written 0, free lines is 4095 [02:19:31]Connected sock=10 [02:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 06 33 20 01 EB 1B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 32 E3 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 86 00 00 35 04 06 00 44 51 23 92 7D C7 4E 39 A4 E7 BA D7 BE 5A [02:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 85 1A 47 00 9E 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 35 30 39 35 10 04 04 00 B3 86 00 00 F4 03 04 00 FA 89 74 66 B6 04 01 00 00 E9 6D 95 6A D6 27 3B F5 [02:19:31]CommunicateWithHost err = 0 [02:19:31]CheckOFDResponse [02:19:31]1017 (14) - 77093643461234 [02:19:31]1041 (16) - 0000000000875095 [02:19:31]1040 (4) - 34483 [02:19:31]1012 (4) - 20.06.2024 19:58 [02:19:31]1206 (1) - 0 [02:19:31]OFD Sender: Remove packet 34483 [02:19:31]ProducePacketName [02:19:31]name=ofd_packets/00034483 [02:19:31]NVStorageDeleteData [02:19:31]Write to MH i2c: 01 00 00 9A 03 9D [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 07 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 D1 0C 81 [02:19:31]RasterBufferAndPrint [02:19:31]line [02:19:31]line [02:19:31]line [02:19:31]line [02:19:31]line [02:19:31]written 0, free lines is 3288 [02:19:31]MH_Cut [02:19:31]Write to MH i2c: D1 01 00 A1 03 01 76 [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: D1 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: D1 01 00 [02:19:31]MH_I2C_Read... [02:19:31]Read from MH i2c: D1 01 00 A1 03 00 75 [02:19:31]Write to MH i2c: 01 00 00 A2 03 A5 [02:19:31]Write i2c OK [02:19:31]MH_I2C_Read... [02:19:32]OFD Sender: No OFD packet to send [02:19:32]*** Cut start [02:19:32]*** Partial cut [02:19:32]*** CUTSNS_PIN = 1 [02:19:32]*** CUTSNS_PIN = 0 [02:19:32]*** Brake cut motor [02:19:33]Read from MH i2c: 01 [02:19:33]MH_I2C_Read... [02:19:33]*** Stop cut motor [02:19:33]*** Cut end [02:19:33]Read from MH i2c: 01 07 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 FF 0F BA [02:19:33]process_action close_receipt done [02:19:33]requested_data is exist [02:19:33]produce_requested_data [02:19:33]requested_item fm.sn is exist - process it [02:19:33]wFMCommunicate request_size=4 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 11 00 00 [02:19:33]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 17 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 75 [02:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:19:33]wFMCommunicate OK [02:19:33]requested_item fd.num is exist - process it [02:19:33]SAM_PROTO_GetFieldsCounters [02:19:33]wFMCommunicate request_size=4 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 13 00 00 [02:19:33]Write to MH i2c: E2 08 00 A4 03 80 13 00 00 00 00 00 00 23 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 62 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 62 00 A4 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B3 86 00 00 0E 04 04 00 46 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 D9 [02:19: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B3 86 00 00 0E 04 04 00 46 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 [02:19:33]wFMCommunicate OK [02:19:33]SAM_PROTO_GetFieldsCounters done [02:19:33]requested_item shift.num is exist - process it [02:19:33]requested_item shift.opened is exist - process it [02:19:33]req_shift_opened [02:19:33]FM_GetShiftState [02:19:33]SAM_PROTO_GetShiftState [02:19:33]wFMCommunicate request_size=4 [02:19:33]MH_SAM_APDU [02:19:33]CAPDU: 80 13 01 00 [02:19:33]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [02:19:33]Write i2c OK [02:19:33]MH_I2C_Read... [02:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:33]Read from MH i2c: E2 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 0E 00 [02:19:33]MH_I2C_Read... [02:19:33]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 01 [02:19:33]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [02:19:33]wFMCommunicate OK [02:19:33]SAM_PROTO_GetShiftState done [02:19:33]FM_GetShiftState done [02:19:33]req_shift_opened done [02:19:33]requested_item shift.open_date is exist - process it [02:19:33]req_shift_open_date [02:19:33]req_shift_open_date done [02:19:33]produce_requested_data done [02:19:33]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34483,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454} [02:19:33]process_action_free close_receipt [02:19:33]json_value_free [02:19:33]json_value_free done [02:19:33]process_json_proto returns [02:19:33]Send response to host [02:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34483,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454}}} [02:19:33]free response buf [02:19:33]execute_script done [02:19:33]execute_script returns [02:19:33]free content buf [02:19:33]Sock 9.Close socket [02:19:33]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:34]accept exits with 7 [02:36:34]New connection [02:36:34]New thread 3067514212 created [02:36:34]Thread 3067370852 joined [02:36:34]Waiting for new connection... [02:36:34] Sock 7.Parse request [02:36:34]Sock 7.Check first char [02:36:34]Sock 7.First char is OK [02:36:34]request: POST /json_proto HTTP/1.0 [02:36:34]Method: POST [02:36:34]URL: /json_proto [02:36:34]Method is POST - this is cgi request [02:36:34]url: /json_proto [02:36:34]query_string will be loaded in cgi processing [02:36:34]execute_cgi json_proto POST (null) [02:36:34]execute_cgi path=json_proto method=POST [02:36:34]POST find Content-Length [02:36:34]Host: 172.17.38.134:8080 [02:36:34]Content-Length: 652 [02:36:34]Content-Type: application/json [02:36:34] [02:36:34]POST finish read [02:36:34]Found Content-Length = 652 [02:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184252", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:34]execute_script... [02:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184252", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:34]POST & json_proto [02:36:34]process_json_proto [02:36:34]json parsed OK: [02:36:34]protocol is kg_v1.0 [02:36:34]action value=close_receipt [02:36:34]process_action close_receipt [02:36:34]cmd_close_receipt [02:36:34]MH_GetDate [02:36:34]Write to MH i2c: F0 00 00 A6 03 98 [02:36:34]Write i2c OK [02:36:34]MH_I2C_Read... [02:36:34]Read from MH i2c: F0 [02:36:34]MH_I2C_Read... [02:36:34]Read from MH i2c: F0 09 00 [02:36:34]MH_I2C_Read... [02:36:34]Read from MH i2c: F0 09 00 A6 03 00 33 E7 74 66 13 9C 7C 64 24 [02:36:34]GetLastDocTimeStamp 1718936370 [02:36:34]current date 1718937395 [02:36:34]FM_GetShiftState [02:36:34]SAM_PROTO_GetShiftState [02:36:34]wFMCommunicate request_size=4 [02:36:34]MH_SAM_APDU [02:36:34]CAPDU: 80 13 01 00 [02:36:34]Write to MH i2c: E2 08 00 A7 03 80 13 01 00 00 00 00 00 27 [02:36:34]Write i2c OK [02:36:34]MH_I2C_Read... [02:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:34]Read from MH i2c: E2 [02:36:34]MH_I2C_Read... [02:36:34]Read from MH i2c: E2 0E 00 [02:36:34]MH_I2C_Read... [02:36:34]Read from MH i2c: E2 0E 00 A7 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 03 [02:36:34]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [02:36:34]wFMCommunicate OK [02:36:34]SAM_PROTO_GetShiftState done [02:36:34]FM_GetShiftState done [02:36:34]opened in 1718929454 [02:36:34]opened+sec_in_day 1719015854 [02:36:34]quantity*price = 26500 [02:36:34]sum+1 = 26501 [02:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 21.06.2024 02:36 Смена: 326 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34484 ФПД: 276553055309163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023635&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34484&fm=276553055309163&tin=02508201610067®Number=0000000000092786&sum=26500 0 [02:36:35]StoreToDocumentArchive [02:36:35]shift 326 fd 34484 [02:36:35]save to /storage/0326/doc_00034484 [02:36:35]save last doc name /storage/0326/doc_00034484 to /storage/kkm_last_doc_name [02:36:35]save OK [02:36:35]Clear old archive folders... [02:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=284 [02:36:35]tlvbuf is 01D729B0 [02:36:35]SAM_PROTO_ClearQueue [02:36:35]wFMCommunicate request_size=4 [02:36:35]MH_SAM_APDU [02:36:35]CAPDU: 80 09 00 00 [02:36:35]Write to MH i2c: E2 08 00 B4 03 80 09 00 00 00 00 00 00 29 [02:36:35]Write i2c OK [02:36:35]MH_I2C_Read... [02:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:35]Read from MH i2c: E2 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [02:36:35]RAPDU: 90 00 [02:36:35]wFMCommunicate OK [02:36:35]SAM_PROTO_ClearQueue done [02:36:35]KKMCreateOFDPacket [02:36:35]OFDProtocolAddRootSTLVToBuf [02:36:35]FM_MakeSignedData [02:36:35]FM_MakeSignedData [02:36:35]SAM_PROTO_SignData [02:36:35]wFMCommunicate request_size=4 [02:36:35]MH_SAM_APDU [02:36:35]CAPDU: 80 0D 01 02 [02:36:35]Write to MH i2c: E2 08 00 B5 03 80 0D 01 02 00 00 00 00 31 [02:36:35]Write i2c OK [02:36:35]MH_I2C_Read... [02:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:35]Read from MH i2c: E2 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [02:36:35]RAPDU: 90 00 [02:36:35]wFMCommunicate OK [02:36:35]wFMCommunicate request_size=255 [02:36:35]MH_SAM_APDU [02:36:35]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 33 E7 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [02:36:35]Write to MH i2c: E2 02 01 B6 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 33 E7 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 9F [02:36:35]Write i2c OK [02:36:35]MH_I2C_Read... [02:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:35]Read from MH i2c: E2 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 [02:36:35]MH_I2C_Read... [02:36:35]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [02:36:35]RAPDU: 90 00 [02:36:35]wFMCommunicate OK [02:36:35]wFMCommunicate request_size=43 [02:36:35]MH_SAM_APDU [02:36:35]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 86 00 00 35 04 06 00 FB 86 06 9F 8D 6B [02:36:35]Write to MH i2c: E2 2E 00 B7 03 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 86 00 00 35 04 06 00 FB 86 06 9F 8D 6B 00 00 76 [02:36:35]Write i2c OK [02:36:35]MH_I2C_Read... [02:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:36]Read from MH i2c: E2 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 03 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [02:36:36]RAPDU: 90 00 [02:36:36]wFMCommunicate OK [02:36:36]wFMCommunicate request_size=4 [02:36:36]MH_SAM_APDU [02:36:36]CAPDU: 80 0D 03 02 [02:36:36]Write to MH i2c: E2 08 00 B8 03 80 0D 03 02 00 00 00 00 36 [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:36]Read from MH i2c: E2 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 0B 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 0B 00 B8 03 00 6E 0D 3F 94 BA 7D AB DE 90 00 45 [02:36:36]RAPDU: 6E 0D 3F 94 BA 7D AB DE 90 00 [02:36:36]wFMCommunicate OK [02:36:36]SAM_PROTO_SignData done [02:36:36]FM_MakeSignedData done [02:36:36]CreateOFDProtocolMessage [02:36:36]wFMCommunicate request_size=4 [02:36:36]MH_SAM_APDU [02:36:36]CAPDU: 80 11 00 00 [02:36:36]Write to MH i2c: E2 08 00 B9 03 80 11 00 00 00 00 00 00 36 [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:36]Read from MH i2c: E2 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 17 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: E2 17 00 B9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8B [02:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:36:36]wFMCommunicate OK [02:36:36]CreateOFDProtocolMessage done [02:36:36]OFDSenderStorePacket 34484 [02:36:36]StoreOFDPacket docnum=34484 [02:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 12 E1 28 01 69 29 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 33 E7 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 86 00 00 35 04 06 00 FB 86 06 9F 8D 6B 6E 0D 3F 94 BA 7D AB DE [02:36:36]CheckFolder [02:36:36]dirname=/storage/ofd_packets [02:36:36]CheckFolder done [02:36:36]ProducePacketName [02:36:36]name=ofd_packets/00034484 [02:36:36]NVStorageSaveData ofd_packets/00034484 [02:36:36]File name is /storage/ofd_packets/00034484 [02:36:36]Write 334 bytes [02:36:36]NVStorageSaveData done [02:36:36]OFDSenderStorePacket done [02:36:36]KKMCreateOFDPacket done [02:36:36]NVStorageSaveData kkm_last_timestamp [02:36:36]File name is /storage/kkm_last_timestamp [02:36:36]Write 4 bytes [02:36:36]NVStorageSaveData done [02:36:36]ExternCall_PrintAddStr [02:36:36]wPrintStart [02:36:36]Write to MH i2c: 01 00 00 BA 03 BD [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 07 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 FF 0F D2 [02:36:36]RasterBufferAndPrint [02:36:36]line Счет N : (3)184252 [02:36:36]line ИНН: 02508201610067 [02:36:36]line Контрольно-Кассовый Чек [02:36:36]line ПРОДАЖА [02:36:36]line Товар: 9002490206550 [02:36:36]line Энерг напиток Red Bull 0,355л [02:36:36]line 1.000 * 265.00 [02:36:36]line = 265.00 [02:36:36]line НДС 12% НСП 1% [02:36:36]line > о реализуемом товаре [02:36:36]line ИТОГО: 265.00 [02:36:36]line НСП 1% : 2.34 [02:36:36]line НДС 12% : 28.14 [02:36:36]line Наличными: 265.00 [02:36:36]line Безнал.: 0.00 [02:36:36]line Место: АЗС № 120 "Партнер Нефть" [02:36:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:36:36]line СНО: Общий режим [02:36:36]line Чек 5 21.06.2024 02:36 [02:36:36]line Смена: 326 ФФД: 1.0 [02:36:36]line ЗНМ: 0300000172 [02:36:36]line РНМ: 0000000000092786 [02:36:36]line Версия ККМ: 001 [02:36:36]line ФМ: 0000000000875095 [02:36:36]line ФД: 34484 [02:36:36]line ФПД: 276553055309163 [02:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023635&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34484&fm=276553055309163&tin=02508201610067®Number=0000000000092786&sum=26500 [02:36:36]line 0 [02:36:36]OFD Sender: Processing packet 34484 [packets to send 8, broken 7] [02:36:36]ProducePacketName [02:36:36]name=ofd_packets/00034484 [02:36:36]OFD Sender: To server: pG, [02:36:36]CommunicateWithHost lk.salyk.kg:30040 [02:36:36]ConnectInit lk.salyk.kg [02:36:36]written 0, free lines is 4095 [02:36:36]Connected sock=10 [02:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 12 E1 28 01 69 29 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 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 33 E7 74 66 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 86 00 00 35 04 06 00 FB 86 06 9F 8D 6B 6E 0D 3F 94 BA 7D AB DE [02:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 03 CC 47 00 A0 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 35 30 39 35 10 04 04 00 B4 86 00 00 F4 03 04 00 FB 8D 74 66 B6 04 01 00 00 DC 5E CF DA EF BF 9D CE [02:36:36]CommunicateWithHost err = 0 [02:36:36]CheckOFDResponse [02:36:36]1017 (14) - 77093643461234 [02:36:36]1041 (16) - 0000000000875095 [02:36:36]1040 (4) - 34484 [02:36:36]1012 (4) - 20.06.2024 20:15 [02:36:36]1206 (1) - 0 [02:36:36]OFD Sender: Remove packet 34484 [02:36:36]ProducePacketName [02:36:36]name=ofd_packets/00034484 [02:36:36]NVStorageDeleteData [02:36:36]Write to MH i2c: 01 00 00 E2 03 E5 [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 07 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 05 0D FE [02:36:36]RasterBufferAndPrint [02:36:36]line [02:36:36]line [02:36:36]line [02:36:36]line [02:36:36]line [02:36:36]written 0, free lines is 3340 [02:36:36]MH_Cut [02:36:36]Write to MH i2c: D1 01 00 E9 03 01 BE [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: D1 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: D1 01 00 [02:36:36]MH_I2C_Read... [02:36:36]Read from MH i2c: D1 01 00 E9 03 00 BD [02:36:36]Write to MH i2c: 01 00 00 EA 03 ED [02:36:36]Write i2c OK [02:36:36]MH_I2C_Read... [02:36:37]OFD Sender: No OFD packet to send [02:36:37]*** Cut start [02:36:37]*** Partial cut [02:36:37]*** CUTSNS_PIN = 1 [02:36:37]*** CUTSNS_PIN = 0 [02:36:37]*** Brake cut motor [02:36:38]Read from MH i2c: 01 [02:36:38]MH_I2C_Read... [02:36:38]*** Stop cut motor [02:36:38]Read from MH i2c: 01 07 00 [02:36:38]MH_I2C_Read... [02:36:38]*** Cut end [02:36:38]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [02:36:38]process_action close_receipt done [02:36:38]requested_data is exist [02:36:38]produce_requested_data [02:36:38]requested_item fm.sn is exist - process it [02:36:38]wFMCommunicate request_size=4 [02:36:38]MH_SAM_APDU [02:36:38]CAPDU: 80 11 00 00 [02:36:38]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [02:36:38]Write i2c OK [02:36:38]MH_I2C_Read... [02:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:38]Read from MH i2c: E2 [02:36:38]MH_I2C_Read... [02:36:38]Read from MH i2c: E2 17 00 [02:36:38]MH_I2C_Read... [02:36:38]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 35 30 39 35 90 00 BD [02:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:36:38]wFMCommunicate OK [02:36:38]requested_item fd.num is exist - process it [02:36:38]SAM_PROTO_GetFieldsCounters [02:36:38]wFMCommunicate request_size=4 [02:36:38]MH_SAM_APDU [02:36:38]CAPDU: 80 13 00 00 [02:36:38]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [02:36:38]Write i2c OK [02:36:38]MH_I2C_Read... [02:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:38]Read from MH i2c: E2 [02:36:38]MH_I2C_Read... [02:36:38]Read from MH i2c: E2 62 00 [02:36:38]MH_I2C_Read... [02:36:38]Read from MH i2c: E2 62 00 EC 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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 86 00 00 0E 04 04 00 46 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 25 [02:36: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 86 00 00 0E 04 04 00 46 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 [02:36:38]wFMCommunicate OK [02:36:38]SAM_PROTO_GetFieldsCounters done [02:36:38]requested_item shift.num is exist - process it [02:36:38]requested_item shift.opened is exist - process it [02:36:38]req_shift_opened [02:36:38]FM_GetShiftState [02:36:38]SAM_PROTO_GetShiftState [02:36:38]wFMCommunicate request_size=4 [02:36:38]MH_SAM_APDU [02:36:38]CAPDU: 80 13 01 00 [02:36:38]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [02:36:38]Write i2c OK [02:36:38]MH_I2C_Read... [02:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:38]Read from MH i2c: E2 [02:36:38]MH_I2C_Read... [02:36:38]Read from MH i2c: E2 0E 00 [02:36:38]MH_I2C_Read... [02:36:38]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 2E C8 74 66 00 00 00 00 90 00 49 [02:36:38]RAPDU: 09 00 01 2E C8 74 66 00 00 00 00 90 00 [02:36:38]wFMCommunicate OK [02:36:38]SAM_PROTO_GetShiftState done [02:36:38]FM_GetShiftState done [02:36:38]req_shift_opened done [02:36:38]requested_item shift.open_date is exist - process it [02:36:38]req_shift_open_date [02:36:38]req_shift_open_date done [02:36:38]produce_requested_data done [02:36:38]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34484,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454} [02:36:38]process_action_free close_receipt [02:36:38]json_value_free [02:36:38]json_value_free done [02:36:38]process_json_proto returns [02:36:38]Send response to host [02:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34484,"shift.num":326,"shift.opened":1,"shift.open_date":1718929454}}} [02:36:38]free response buf [02:36:38]execute_script done [02:36:38]execute_script returns [02:36:38]free content buf [02:36:38]Sock 7.Close socket [02:36:38]Sock 7.Thread stoped [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50: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:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11: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 [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send